結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
f843nmfwisfeuw
|
| 提出日時 | 2020-07-22 08:25:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 179 ms / 5,000 ms |
| コード長 | 466 bytes |
| コンパイル時間 | 695 ms |
| コンパイル使用メモリ | 87,424 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-02 21:14:14 |
| 合計ジャッジ時間 | 2,137 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
using namespace std;
long calc(long L, long K) {
long cnt = 0;
while(L-2*K > 0) {
cnt += 1;
L -= 2*K;
}
return cnt * K;
}
int main() {
long L,K;
cin>>L>>K;
cout << calc(L,K) << endl;
return 0;
}
f843nmfwisfeuw