結果
問題 |
No.814 ジジ抜き
|
ユーザー |
![]() |
提出日時 | 2021-04-28 18:58:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 193,780 KB |
最終ジャッジ日時 | 2024-07-07 17:37:47 |
合計ジャッジ時間 | 7,132 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | MLE * 1 -- * 22 |
ソースコード
from collections import defaultdict import sys input = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 7) N = int(input()) card = defaultdict(int) for _ in range(N): K, L, D = map(int, input().split()) two = pow(2, D) for _ in range(K): card[L] ^= 1 L += two ans = -1 for k, v in card.items(): if v: ans = k print(ans)