結果
| 問題 |
No.814 ジジ抜き
|
| コンテスト | |
| ユーザー |
Lepton_s
|
| 提出日時 | 2018-01-23 04:03:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 339 bytes |
| コンパイル時間 | 707 ms |
| コンパイル使用メモリ | 62,976 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-12-26 03:00:48 |
| 合計ジャッジ時間 | 13,874 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 TLE * 2 |
ソースコード
// naive solution
#include <cstdio>
#include <iostream>
typedef long long ll;
#define REP(i,a,b) for(ll (i)=a;(i)<(ll)(b);++(i))
#define rep(i,n) REP(i,0,n)
int main(){
ll N;
scanf("%lld", &N);
ll x = 0;
rep(i, N){
ll K, L, D;
scanf("%lld%lld%lld", &K, &L, &D);
rep(i, K) x ^= L+i*(1LL<<D);
}
printf("%lld\n", x);
return 0;
}
Lepton_s