結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
chocopuu
|
| 提出日時 | 2018-06-03 17:09:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| コンパイル時間 | 441 ms |
| コンパイル使用メモリ | 54,948 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 09:25:05 |
| 合計ジャッジ時間 | 925 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:11: warning: ‘b’ is used uninitialized [-Wuninitialized]
5 | int a,b,ans;
| ^
ソースコード
#include<iostream>
using namespace std;
int main(){
int a,b,ans;
cin >> a,b;
if(b % a == 0)
ans = b / a;
else
ans = b / a + 1;
cout << ans << endl;
return 0;
}
chocopuu