結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2019-10-11 20:30:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 190 ms / 5,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 1,303 ms |
コンパイル使用メモリ | 158,324 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 04:58:25 |
合計ジャッジ時間 | 2,697 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
/* No.63 ポッキーゲーム https://yukicoder.me/problems/no/63 */ #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int l, k; cin >> l >> k; int yu = 0; l -= k; while (l > k) { yu += k; l -= k * 2; } cout << yu << endl; }