結果

問題 No.63 ポッキーゲーム
ユーザー Beginer_
提出日時 2025-06-02 17:35:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 36 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 518 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-06-02 17:35:12
合計ジャッジ時間 2,257 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

L, K= map(int, input().split())
count= L / (K*2)
T_count= int(count)
term= L % (K*2)

if term != 0:
	if count <= 1:
		U_length= 0
	else:
		U_length= K * T_count
else:
	U_length= K * T_count - K
	
print(U_length)
0