結果

問題 No.814 ジジ抜き
ユーザー treeonetreeone
提出日時 2019-04-12 22:05:46
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 614 bytes
コンパイル時間 2,054 ms
コンパイル使用メモリ 204,404 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-12 20:35:35
合計ジャッジ時間 9,106 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define int long long
using namespace std;
typedef pair<int, int> P;
const int mod = 1000000007;
const int INF = 1e18;

signed main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int n;
    cin >> n;
    map<int, int> mp;
    rep(i, 0, n){
        int k, l, d;
        cin >> k >> l >> d;
        int now = l;
        rep(j, 0, k){
            mp[now]++;
            now += (1LL << d);
        }
    }
    for(auto i : mp){
        if(i.second % 2){
            cout << i.first << endl;
            return 0;
        }
    }
}
0