結果

問題 No.63 ポッキーゲーム
ユーザー Noiri
提出日時 2017-12-08 21:54:07
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 416 ms
コンパイル使用メモリ 55,488 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-29 19:47:52
合計ジャッジ時間 1,822 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int L;
    int K;
    cin >> L >> K;
    int yuu = 0;
    for(int i = 0; i < L; i++){
        L = L - 2*K;
        if(L <= 0) break;
        yuu += K;
    }
    cout << yuu << endl;
    return 0;
}
0