結果
| 問題 | 
                            No.63 ポッキーゲーム
                             | 
                    
| コンテスト | |
| ユーザー | 
                             wesoweeen
                         | 
                    
| 提出日時 | 2021-07-18 16:04:05 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 30 ms / 5,000 ms | 
| コード長 | 373 bytes | 
| コンパイル時間 | 138 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-08 09:37:25 | 
| 合計ジャッジ時間 | 1,448 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
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(int(K * (bite_count - 1)))
    else:
        print(int(K * bite_count))
        
if __name__ == '__main__':
    main()
            
            
            
        
            
wesoweeen