結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
jolly_gliscor
|
| 提出日時 | 2018-02-19 19:33:54 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
RE
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 37,888 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-12 18:38:58 |
| 合計ジャッジ時間 | 3,032 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
jolly_gliscor