結果
問題 | No.1717 Levi-Civita Triangle |
ユーザー | aaaaaaaaaa2230 |
提出日時 | 2021-10-23 14:10:12 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 546 bytes |
コンパイル時間 | 407 ms |
コンパイル使用メモリ | 81,548 KB |
実行使用メモリ | 99,800 KB |
最終ジャッジ日時 | 2023-10-25 10:11:56 |
合計ジャッジ時間 | 7,203 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
53,416 KB |
testcase_01 | AC | 38 ms
53,416 KB |
testcase_02 | AC | 38 ms
53,416 KB |
testcase_03 | AC | 38 ms
53,416 KB |
testcase_04 | AC | 38 ms
53,416 KB |
testcase_05 | AC | 48 ms
62,040 KB |
testcase_06 | AC | 90 ms
76,152 KB |
testcase_07 | AC | 113 ms
91,664 KB |
testcase_08 | AC | 38 ms
53,416 KB |
testcase_09 | AC | 37 ms
53,416 KB |
testcase_10 | AC | 50 ms
62,048 KB |
testcase_11 | AC | 91 ms
75,876 KB |
testcase_12 | AC | 102 ms
83,408 KB |
testcase_13 | AC | 37 ms
53,416 KB |
testcase_14 | AC | 44 ms
59,404 KB |
testcase_15 | AC | 52 ms
61,988 KB |
testcase_16 | AC | 481 ms
68,384 KB |
testcase_17 | TLE | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
ソースコード
n = int(input()) A = list(map(int,input().split())) for i in range(n): flag = 0 for j in range(2*(n-1-i)+1): x,y,z = A[j],A[j+1],A[j+2] if (x==0 and y == 1 and z == 2) or (x==1 and y == 2 and z == 0) or (x==2 and y == 0 and z == 1): A[j] = 1 flag = 1 elif (x==0 and y == 2 and z == 1) or (x==2 and y == 1 and z == 0) or (x==1 and y == 0 and z == 2): A[j] = 2 flag = 1 else: A[j] = 0 if flag == 0: print(0) exit() print(A[0])