Submission #77154


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<bits/stdc++.h>
using namespace std;
#define en "\n"
#define re return(0)
int main(){
#define int long long
int a,b,c,count=0,d=0,e=0;
cin>>a>>b>>c;
d=b-a;
e=b/a;
int f=a;
while(count!=9){
if(b-a==c-b){
f+=d;
}
if(b/a==c/b){
f*=e;
}
count++;
}
cout<<f<<en;
re;
}

ステータス

項目 データ
問題 1600 - トウサ菌トウヒ菌
ユーザー名 SPAAcup(ei2324)
投稿日時 2023-11-10 17:07:19
言語 C++17
状態 Accepted
得点 1
ソースコード長 408 Byte
最大実行時間 24 ms
最大メモリ使用量 580 KB

セット

セット 得点 Cases
1 ALL 4 / 4 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1 AC 24 ms 476 KB
1
in2 AC 19 ms 520 KB
1
in3 AC 17 ms 492 KB
1
in4 AC 20 ms 460 KB
1
in5 AC 17 ms 436 KB
1
in6 AC 17 ms 532 KB
1
in7 AC 20 ms 504 KB
1
in8 AC 19 ms 472 KB
1
in9 AC 19 ms 448 KB
1
in10 AC 22 ms 580 KB
1
in11 AC 24 ms 548 KB
1