結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
sanyonfu
|
| 提出日時 | 2019-04-14 17:28:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 189 ms / 5,000 ms |
| コード長 | 180 bytes |
| コンパイル時間 | 1,268 ms |
| コンパイル使用メモリ | 158,500 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 05:56:50 |
| 合計ジャッジ時間 | 2,676 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int L,K,ans = 0;
cin >> L >> K;
while(L > 2*K){
L -= 2*K;
ans +=K;
}
cout << ans << endl;
}
sanyonfu