結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
RCCW
|
| 提出日時 | 2017-02-02 18:38:02 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 166 ms / 5,000 ms |
| + 898µs | |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 761 ms |
| コンパイル使用メモリ | 176,800 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-07 02:11:05 |
| 合計ジャッジ時間 | 2,744 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
long long l,k,kk=0;
cin>>l>>k;
if(l<=k+k){
cout<<0<<endl;
return 0;
}
while(l>k*2+kk){
kk=kk+k*2;
}
cout<<kk/2<<endl;
}
#950832
RCCW