結果
| 問題 | 
                            No.63 ポッキーゲーム
                             | 
                    
| コンテスト | |
| ユーザー | 
                             wesoweeen
                         | 
                    
| 提出日時 | 2021-07-18 15:58:47 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 321 bytes | 
| コンパイル時間 | 302 ms | 
| コンパイル使用メモリ | 12,288 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-08 09:33:30 | 
| 合計ジャッジ時間 | 1,468 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 WA * 7 | 
ソースコード
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 you_bite == half_length_of_pokky:
        print(K * (bite_count - 1))
    else:
        print(K * bite_count)
        
if __name__ == '__main__':
    main()
            
            
            
        
            
wesoweeen