結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2019-02-20 21:06:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 424 ms |
コンパイル使用メモリ | 54,108 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 16:32:43 |
合計ジャッジ時間 | 1,355 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:15:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | system("pause"); | ~~~~~~^~~~~~~~~
ソースコード
#include <iostream> using namespace std; int main() { int a, b; int n = 0; cout << "a = " << flush; cin >> a; cout << "b = " << flush; cin >> b; while (a * n <= b) { n++; } cout << n << endl; system("pause"); return 0; }