結果

問題 No.63 ポッキーゲーム
ユーザー WatsonWatson
提出日時 2017-06-21 14:59:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 184 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-24 05:33:40
合計ジャッジ時間 1,916 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

L,K = map(int,input().split())
ham = L/(K*2)
if L%K == 0:
    if ham % 2 == 0 or ham == 1:
        print((int(ham)-1)*K)
    else:
        print(int(ham)*K)
else:
    print(int(ham)*K)
0