Submission #00047


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<bits/stdc++.h>
using namespace std;
int main(){
while(1){
double R0,W0,C,R;
cin>>R0>>W0>>C>>R;
if(R0 + W0 + C + R == 0) break;
int cnt=0;
while(1){
if(R0 / W0 >= C){
cout<<cnt<<endl;
break;
}
cnt++;
R0 += R;
}
}
}

ステータス

項目 データ
問題 0003 - カレー作り
ユーザー名 椅子男
投稿日時 2016-08-12 10:15:08
言語 C++11
状態 Accepted
得点 6
ソースコード長 295 Byte
最大実行時間 17 ms
最大メモリ使用量 476 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
A1 AC 17 ms 476 KB
1
A2 AC 13 ms 452 KB
1
A3 AC 10 ms 432 KB
1
A4 AC 12 ms 408 KB
1