結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2021-06-03 13:14:58 |
言語 | Swift (6.0.3) |
結果 |
AC
|
実行時間 | 9 ms / 5,000 ms |
コード長 | 182 bytes |
コンパイル時間 | 1,424 ms |
コンパイル使用メモリ | 128,224 KB |
実行使用メモリ | 9,344 KB |
最終ジャッジ日時 | 2024-11-16 19:35:52 |
合計ジャッジ時間 | 2,406 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
let input = readLine()!.split(separator: " ").map{Int($0)}let L = input[0]!let K = input[1]! * 2let bite = (L / K)let contact = (L % K) == 0 ? 1 : 0print((K/2) * (bite-contact))