結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-11-16 18:41:13 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 589 ms |
| コンパイル使用メモリ | 72,236 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 06:29:27 |
| 合計ジャッジ時間 | 1,705 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 5 |
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<math.h>
#include<stack>
#include <typeinfo>
using namespace std;
int main(void){
long L, K; cin >> L >> K;
long len = L / 2;
long cnt = 0;
for(;;){
len -= K;
if(len <= 0) break;
cnt++;
}
cout << K * cnt << endl;
return 0;
}
hamray