結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
shialt
|
| 提出日時 | 2014-12-11 15:03:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 160 bytes |
| コンパイル時間 | 456 ms |
| コンパイル使用メモリ | 52,980 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 04:44:08 |
| 合計ジャッジ時間 | 1,398 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
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);
int tmp = (a - 1) / (2 * b);
printf("%d\n", tmp * b);
return 0;
}
shialt