結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
motxx
|
| 提出日時 | 2014-12-03 03:43:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 1,284 ms |
| コンパイル使用メモリ | 157,308 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-11 14:41:03 |
| 合計ジャッジ時間 | 1,778 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,a,b) for(int i=a;i<(int)b;i++)
#define rep(i,n) REP(i,0,n)
int main() {
int L, K; cin >>L>>K;
int a = L-L/(K<<1)*K;
if(a<=0) cout << 0 << endl;
else cout << a << endl;
return 0;
}
motxx