結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
yuma220284
|
| 提出日時 | 2019-04-02 21:55:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 178 bytes |
| コンパイル時間 | 1,500 ms |
| コンパイル使用メモリ | 159,160 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 10:00:30 |
| 合計ジャッジ時間 | 2,734 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
int L, K;
cin >> L >> K;
if (L % 2 == 0) {
L /= 2;
L--;
}
else {
L /= 2;
}
cout << (L / K) * K << endl;
}
yuma220284