結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2024-03-07 03:21:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 192 ms / 5,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 2,138 ms |
コンパイル使用メモリ | 191,576 KB |
最終ジャッジ日時 | 2025-02-20 01:30:42 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int l,k; cin>>l>>k; int cnt=0; while(l>0){ l-=2*k; cnt++; } cout<<(cnt-1)*k<<endl; }