結果

問題 No.2841 Leaf Eater
ユーザー とりゐ
提出日時 2024-07-17 17:20:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 82,204 KB
実行使用メモリ 103,736 KB
最終ジャッジ日時 2024-07-17 17:46:26
合計ジャッジ時間 3,285 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
assert 1 <= T <= 10**5
n_sum = 0
for i in range(T):
    n = int(input())
    p = list(map(int, input().split()))
    assert len(p) == n - 1
    n_sum += n
    for i in range(n - 1):
        assert 1 <= p[i] <= i + 1
assert n_sum <= 2 * 10**5
0