結果
問題 | No.814 ジジ抜き |
ユーザー | Lepton_s |
提出日時 | 2018-01-23 04:03:48 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 405 ms |
コンパイル使用メモリ | 63,872 KB |
実行使用メモリ | 7,656 KB |
最終ジャッジ日時 | 2023-08-26 23:19:57 |
合計ジャッジ時間 | 6,024 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
7,484 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 92 ms
4,376 KB |
testcase_04 | TLE | - |
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 | -- | - |
ソースコード
// 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; }