結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
Breloom
|
| 提出日時 | 2018-02-19 12:52:42 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 39,216 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-28 20:56:35 |
| 合計ジャッジ時間 | 2,624 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 10 |
コンパイルメッセージ
main.cpp: In function 'int CountWalk(int, int)':
main.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
12 | }
| ^
ソースコード
#include <cstdio>
#include <cstdlib>
int CountWalk(int a, int b)
{
for(int i=1;;i++){
if ( b <= a*i ){
printf("%d\n",i);
break;
}
}
}
int main(int argc, char **argv)
{
int a,b;
scanf("%d",&a);
scanf("%d",&b);
CountWalk(a,b);
return 0;
}
Breloom