結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-17 01:14:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 1,480 ms |
| コンパイル使用メモリ | 167,076 KB |
| 実行使用メモリ | 14,016 KB |
| 最終ジャッジ日時 | 2024-09-23 03:37:53 |
| 合計ジャッジ時間 | 10,265 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 TLE * 1 -- * 8 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
typedef long long ll;
int main(){
int L,K;
cin>>L>>K;
int ans=0;
while(L>2*K){
if(L%(2*K)!=0){
ans++;
L-=2*K;
}
}
cout << ans*K << endl;
}