結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2019-05-23 12:28:11 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 187 bytes |
コンパイル時間 | 423 ms |
コンパイル使用メモリ | 54,116 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-17 09:43:44 |
合計ジャッジ時間 | 2,477 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 11 |
ソースコード
#include <iostream> using namespace std; int main(){ int L, K, cnt=0; cin >> L >> K; for (int i=1, j=L; i<L/2; i+=K, j-=K) { if (i<j) cnt++; } cout << (cnt-1)*K << endl; }