結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
leaf+
|
| 提出日時 | 2019-04-14 11:36:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 194 bytes |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 55,984 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-17 12:16:47 |
| 合計ジャッジ時間 | 1,610 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:13: warning: ‘a’ may be used uninitialized in this function [-Wmaybe-uninitialized]
10 | cout << a << endl;
| ^
ソースコード
#include <iostream>
using namespace std;
int main() {
int l, k, a;
cin >> l >> k;
while (l > 2 * k) {
l -= 2 * k;
a += k;
}
cout << a << endl;
return 0;
}
leaf+