結果

問題 No.2828 Remainder Game
ユーザー t98slider
提出日時 2024-08-10 13:19:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 485 bytes
コンパイル時間 2,148 ms
コンパイル使用メモリ 194,012 KB
最終ジャッジ日時 2025-02-23 22:20:55
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int N, ans = 0;
    cin >> N;
    for(int i = 0; i < 10; i++){
        int r = 1 << i, res;
        cout << 2 * r << ' ' << r << '\n';
        for(int j = 0; j < r; j++){
            if(j) cout << ' ';
            cout << j;
        }
        cout << endl;
        cin >> res;
        ans += (5 - res) << i;
    }
    cout << "0 1\n" << ans << endl;
}
0