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