結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2014-12-11 14:56:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 139 bytes |
コンパイル時間 | 594 ms |
コンパイル使用メモリ | 53,728 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-11 20:35:00 |
合計ジャッジ時間 | 1,400 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 14 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:7: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &a); | ~~~~~^~~~~~~~~~ main.cpp:7:7: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d", &b); | ~~~~~^~~~~~~~~~
ソースコード
#include<iostream> int main() { int a, b; scanf("%d", &a); scanf("%d", &b); printf("%d\n", (a - 1) / (2 * b)); return 0; }