結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2020-06-28 09:45:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 1,622 ms |
コンパイル使用メモリ | 164,480 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-07 04:14:09 |
合計ジャッジ時間 | 2,083 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>using ll = long long;using namespace std;int main(){ll l,k;scanf("%lld", &l);scanf("%lld", &k);ll k2=k<<1;l = ((l+k2-1)/k2)*k2;printf("%lld\n",l/2-k);return 0;}