結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2017-06-23 23:29:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 609 bytes |
コンパイル時間 | 1,266 ms |
コンパイル使用メモリ | 80,908 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-03 03:44:12 |
合計ジャッジ時間 | 1,848 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 8 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cassert> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define rep(i,n) FOR(i,0,n) #define DEBUG(x) cout<<#x<<": "<<x<<endl #define vint vector<int> #define vdouble vector<double> #define vstring vector<string> using namespace std; #include<map> #include<set> #include<queue> typedef long long ll; typedef unsigned long long ull; const int MAX_N = 1000000; int main() { ll L, K; cin >> L >> K; ll t = L / (2 * K); ll r = L - t; if (r == 0) t--; cout << t * K << endl; }