結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
wesoweeen
|
| 提出日時 | 2021-07-18 16:02:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 363 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-08 09:36:41 |
| 合計ジャッジ時間 | 1,520 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 5 |
ソースコード
def main():
L, K = map(int, input().split())
half_length_of_pokky = L // 2
bite_count = half_length_of_pokky // K
you_bite = K * bite_count
if bite_count <= 0:
print(0)
elif you_bite == half_length_of_pokky:
print(K * (bite_count - 1))
else:
print(K * bite_count)
if __name__ == '__main__':
main()
wesoweeen