結果
問題 | No.46 はじめのn歩 |
ユーザー | kr1buki |
提出日時 | 2017-01-30 17:47:56 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 691 ms |
コンパイル使用メモリ | 23,144 KB |
実行使用メモリ | 10,400 KB |
最終ジャッジ日時 | 2023-08-25 15:16:16 |
合計ジャッジ時間 | 12,890 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
ソースコード
#include <stdio.h> int main(void){ int a, b; scanf("%d %d",&a, &b); int i,flag=0; while(1){ if(a*i>=b){ flag=1; break; i++; } } if(flag==1) printf("%d\n",i); else printf("0\n"); return 0; }