Submission #00316


ソースコード

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

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt WA 20 ms 476 KB
1
input02.txt WA 20 ms 592 KB
1
input03.txt WA 18 ms 456 KB
1
input04.txt WA 19 ms 448 KB
1
input05.txt WA 21 ms 444 KB
1