Submission #00334


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<stdio.h>
int main(){
int ans,a,b,c,d,i;
ans=0;
i=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
i=0;
d=a;
ans=0;
while(1){
ans=ans+b;
ans=ans-c;
i++;
if(a<=ans){
break;
}
}
printf("%d\n",i);
return(0);
}

ステータス

項目 データ
問題 0006 - パンケーキの水やり
ユーザー名 ei1736
投稿日時 2017-04-28 17:59:35
言語 C
状態 Wrong Answer
得点 0
ソースコード長 291 Byte
最大実行時間 21 ms
最大メモリ使用量 612 KB

セット

セット 得点 Cases
1 ALL 0 / 20 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt WA 21 ms 380 KB
1
input02.txt AC 19 ms 544 KB
1
input03.txt AC 19 ms 612 KB
1
input04.txt WA 17 ms 576 KB
1
input05.txt WA 15 ms 388 KB
1