結果
| 問題 |
No.3217 Shiki no Shiki
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-08-01 21:40:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 82,076 KB |
| 実行使用メモリ | 99,144 KB |
| 最終ジャッジ日時 | 2025-08-01 21:40:59 |
| 合計ジャッジ時間 | 2,914 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 19 |
ソースコード
n=int(input()) p=[0]+list(map(int,input().split())) d=[0]*(n+1) for i in range(1,n+1): d[p[i]]+=1 v=[0]*(n+1) q=[i for i in range(1,n+1) if d[i]==0] q=[p[s] for s in q if p[s]!=0] q=[p[s] for s in q if p[s]!=0] print(len(q))
sasa8uyauya