結果
問題 | No.816 Beautiful tuples |
ユーザー | pasoconhoshii |
提出日時 | 2019-04-20 00:56:57 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 1,461 ms |
コンパイル使用メモリ | 11,828 KB |
実行使用メモリ | 9,996 KB |
最終ジャッジ日時 | 2023-10-24 22:50:43 |
合計ジャッジ時間 | 1,669 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 29 ms
9,996 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 29 ms
9,996 KB |
testcase_08 | AC | 29 ms
9,996 KB |
testcase_09 | AC | 29 ms
9,996 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 29 ms
9,996 KB |
testcase_13 | AC | 29 ms
9,996 KB |
testcase_14 | AC | 30 ms
9,996 KB |
ソースコード
A, B = map(int, input().split()) if A<B: A,B = B,A ls = [1,2,3] ab = [A,B] if all(ab[i] in ls for i in range(2)): for l in ls: if not l in ab: print(l) exit() else: print(-1)