結果

問題 No.2828 Remainder Game
ユーザー GOTKAKO
提出日時 2024-08-02 21:53:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 511 bytes
コンパイル時間 2,058 ms
コンパイル使用メモリ 192,896 KB
最終ジャッジ日時 2025-02-23 20:01:01
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int N; cin >> N;
    int answer = 0;
    for(int i=1; i<10; i++){
        cout << (1<<i) << " " << (1<<(i-1)) << endl;
        for(int k=1<<(i-1); k<(1<<i); k++){
            if(k != (1<<(i-1))) cout << " ";
            cout << k;
        }
        cout << endl;
        int c; cin >> c;
        answer += c*(1<<(i-1));
    }
   
    cout << "0 1" << endl;
    cout << answer << endl;
}
0