結果
| 問題 | No.1717 Levi-Civita Triangle |
| コンテスト | |
| ユーザー |
taiga0629kyopro
|
| 提出日時 | 2021-10-22 23:26:54 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 426 bytes |
| 記録 | |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 95,952 KB |
| 実行使用メモリ | 111,456 KB |
| 最終ジャッジ日時 | 2026-09-03 01:57:58 |
| 合計ジャッジ時間 | 6,060 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 24 |
ソースコード
n=int(input())
m=2*n+1
x=list(map(int,input().split()))
def f(x):
one=[(0,1,2),(1,2,0),(2,0,1)]
two=[(2,1,0),(1,0,2),(0,2,1)]
while len(x)>1:
y=[]
for i in range(len(x)-2):
tup=(x[i],x[i+1],x[i+2])
if tup in one:y.append(1)
elif tup in two:y.append(2)
else:y.append(0)
x=y
return x[0]
if len(x)>200:
print(0)
else:
print(f(x))
taiga0629kyopro