結果

問題 No.26 シャッフルゲーム
ユーザー nebukuro09nebukuro09
提出日時 2016-09-09 09:56:20
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 6,604 KB
実行使用メモリ 6,176 KB
最終ジャッジ日時 2023-08-10 00:21:43
合計ジャッジ時間 967 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,004 KB
testcase_01 AC 13 ms
5,996 KB
testcase_02 AC 13 ms
5,972 KB
testcase_03 AC 12 ms
6,176 KB
testcase_04 AC 12 ms
6,060 KB
testcase_05 AC 12 ms
6,040 KB
testcase_06 AC 12 ms
5,960 KB
testcase_07 AC 12 ms
5,976 KB
testcase_08 AC 12 ms
6,056 KB
testcase_09 AC 12 ms
6,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = raw_input()
for i in range(input()):
    r = raw_input().split()
    if r[0] == n:
        n = r[1]
    elif r[1] == n:
        n = r[0]
print n
0