結果
問題 | No.1717 Levi-Civita Triangle |
ユーザー | kys |
提出日時 | 2021-10-22 22:30:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 828 bytes |
コンパイル時間 | 316 ms |
コンパイル使用メモリ | 81,820 KB |
実行使用メモリ | 95,392 KB |
最終ジャッジ日時 | 2023-10-24 13:49:11 |
合計ジャッジ時間 | 4,172 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
53,516 KB |
testcase_01 | AC | 36 ms
53,516 KB |
testcase_02 | AC | 35 ms
53,516 KB |
testcase_03 | AC | 36 ms
53,516 KB |
testcase_04 | AC | 36 ms
53,516 KB |
testcase_05 | AC | 39 ms
59,516 KB |
testcase_06 | AC | 41 ms
62,144 KB |
testcase_07 | AC | 56 ms
81,968 KB |
testcase_08 | AC | 35 ms
53,516 KB |
testcase_09 | AC | 36 ms
53,516 KB |
testcase_10 | AC | 38 ms
59,516 KB |
testcase_11 | AC | 40 ms
61,840 KB |
testcase_12 | AC | 48 ms
71,696 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | AC | 36 ms
53,516 KB |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | WA | - |
ソースコード
import sys input = sys.stdin.readline def iinput(): return int(input()) def sinput(): return input().rstrip() def i0input(): return int(input()) - 1 def linput(): return list(input().split()) def liinput(): return list(map(int, input().split())) def miinput(): return map(int, input().split()) def li0input(): return list(map(lambda x: int(x) - 1, input().split())) def mi0input(): return map(lambda x: int(x) - 1, input().split()) INF = 10**20 MOD = 1000000007 N = iinput() A = liinput() if N >= 3: print(0) exit(0) if N == 2: if A == [2, 1, 0, 1, 2]: print(1) elif A == [1, 2, 0, 2, 1]: print(2) else: print(0) exit(0) if A == [0, 1, 2] or A == [1, 2, 0] or A == [2, 0, 1]: print(1) elif A == [2, 1, 0] or A == [1, 0, 2] or A == [0, 2, 1]: print(2) else: print(0)