結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
ARCANA
|
| 提出日時 | 2023-07-01 12:21:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| コンパイル時間 | 609 ms |
| コンパイル使用メモリ | 65,968 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-07 22:54:08 |
| 合計ジャッジ時間 | 1,465 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 WA * 3 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
// input
int L,K;
cin >> L>>K;
int totalcount =0;
totalcount = (L + K -1) / K ;
int yuucount = totalcount / 2;
int ans = K * yuucount;
if(L % (2*K)==0){
ans -= K;
}
cout << ans << endl;
// output
}
ARCANA