結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
mumucoder
|
| 提出日時 | 2018-10-28 17:54:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 342 ms / 5,000 ms |
| コード長 | 343 bytes |
| コンパイル時間 | 1,286 ms |
| コンパイル使用メモリ | 55,248 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-19 07:12:00 |
| 合計ジャッジ時間 | 2,274 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
int main(int argc, char *argv[]) {
int pocky_length = 0;
int eat_length = 0;
std::cin >> pocky_length;
std::cin >> eat_length;
int count = 0;
while (1) {
pocky_length -= (eat_length * 2);
count++;
if (pocky_length <= 0) {
break;
}
}
std::cout << (eat_length * (count - 1)) << std::endl;
return 0;
}
mumucoder