結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
ARCANA
|
| 提出日時 | 2023-07-01 20:24:47 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 228µs | |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 75,868 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-12 09:16:11 |
| 合計ジャッジ時間 | 1,925 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_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