結果
| 問題 |
No.814 ジジ抜き
|
| コンテスト | |
| ユーザー |
treeone
|
| 提出日時 | 2019-04-12 22:05:46 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 614 bytes |
| コンパイル時間 | 2,292 ms |
| コンパイル使用メモリ | 200,036 KB |
| 最終ジャッジ日時 | 2025-01-07 01:51:47 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 MLE * 1 |
| other | TLE * 21 MLE * 2 |
ソースコード
#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;
}
}
}
treeone