結果
| 問題 | No.2828 Remainder Game | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-08-07 10:17:06 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 889 bytes | 
| コンパイル時間 | 1,443 ms | 
| コンパイル使用メモリ | 114,152 KB | 
| 実行使用メモリ | 25,452 KB | 
| 平均クエリ数 | 27.00 | 
| 最終ジャッジ日時 | 2024-08-07 10:17:12 | 
| 合計ジャッジ時間 | 5,193 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 20 | 
ソースコード
#pragma GCC optimize("O2")
#ifdef local
#include <C++/core/io/debug_print.hpp>
#else
#define dump(...) void(0);
#endif
#include <iostream>
#include <vector>
#include <ranges>
int main() {
    std::cin.tie(nullptr) -> sync_with_stdio(false);
    int n, c, res = 0;
    std::cin >> n;
    for(const auto &i: std::views::iota(0, 13)) {
        const int m = 2 << i;
        dump(m);
        std::vector<int> r;
        for(const auto &j: std::views::iota(0, m)) {
            if(i >> j & 1) {
                r.emplace_back(j);
            }
        }
        const auto k = std::ssize(r);
        std::cout << m << ' ' << k << '\n';
        for(const auto &j: std::views::iota(0, k)) {
            std::cout << r[k] << " \n"[j + 1 == k];
        }
        std::cout.flush();
        std::cin >> c;
        res += (1 << i) * c;
    }
    std::cout << "0 1\n";
    std::cout << res << '\n';
}
            
            
            
        