結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
siguma323
|
| 提出日時 | 2016-05-03 18:38:58 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 375 ms |
| コンパイル使用メモリ | 89,148 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-10 12:18:21 |
| 合計ジャッジ時間 | 2,016 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 10 |
ソースコード
#include <algorithm>
#include <numeric>
#include <string>
#include <vector>
#include <iostream>
#include <queue>
#include <utility>
#include <cmath>
using namespace std;
using ull = unsigned long long;
int main()
{
ull l,k;
cin >> l >> k;
int num = ceil(l/(2*k));
if(num & 1)
cout << (num-1)*k << endl;
else
cout << num*k << endl;
}
siguma323