結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
ARCANA
|
| 提出日時 | 2023-07-01 20:24:47 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 601 ms |
| コンパイル使用メモリ | 78,368 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-29 23:37:59 |
| 合計ジャッジ時間 | 1,484 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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