結果
問題 | No.26 シャッフルゲーム |
ユーザー | bellangeldindon |
提出日時 | 2017-06-03 18:31:43 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 7,084 KB |
実行使用メモリ | 6,424 KB |
最終ジャッジ日時 | 2023-10-22 03:07:08 |
合計ジャッジ時間 | 788 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 11 ms
6,424 KB |
testcase_02 | WA | - |
testcase_03 | AC | 11 ms
6,424 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 13 ms
6,424 KB |
testcase_07 | AC | 13 ms
6,424 KB |
testcase_08 | AC | 12 ms
6,424 KB |
testcase_09 | WA | - |
ソースコード
cup = [False, False, False, False] n = int(raw_input()) m = int(raw_input()) cup[n] = True for i in range(0, m): inpt = map(int, raw_input().split()) tmp = cup[inpt[0]] cup[inpt[0]] = cup[inpt[1]] cup[inpt[1]] = tmp for i in range(0, 3): if cup[i]: print i