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