結果
| 問題 |
No.2828 Remainder Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-02 21:47:34 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 492 bytes |
| コンパイル時間 | 774 ms |
| コンパイル使用メモリ | 81,112 KB |
| 実行使用メモリ | 25,580 KB |
| 平均クエリ数 | 17.60 |
| 最終ジャッジ日時 | 2024-08-02 21:47:38 |
| 合計ジャッジ時間 | 3,556 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
ソースコード
#include <iostream>
using namespace std;
int N, sz, ans, C;
int main() {
cin >> N;
sz = 2; ans = 0;
while (sz <= N)
sz *= 2;
while (sz >= 2) {
cout << sz << sz / 2 << "\n";
for (int i = 0; i < sz / 2; i++)
cout << i << ((i == sz / 2 - 1) ? "\n" : " ");
cout.flush();
cin >> C;
sz /= 2;
ans += (5 - C) * sz;
}
cout << 0 << " " << 1 << "\n";
cout << ans << "\n";
cout.flush();
return 0;
}