結果
問題 |
No.388 階段 (1)
|
ユーザー |
![]() |
提出日時 | 2017-08-23 22:36:28 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 1,090 ms |
コンパイル使用メモリ | 27,264 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 13:38:55 |
合計ジャッジ時間 | 682 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 2 |
ソースコード
#include <stdio.h> int main() { int s,f,n=1; scanf("%d%d",&s,&f); if(s==f) { printf("%d",n+1); } else if(s<f) { printf("%d",n); } else if(s>f) { while(s>f) { s=s-f; n++; } printf("%d",n); } return 0; }