結果

問題 No.26 シャッフルゲーム
ユーザー ytftytft
提出日時 2022-11-03 18:52:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 71,496 KB
最終ジャッジ日時 2023-09-25 02:58:41
合計ジャッジ時間 1,890 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,404 KB
testcase_01 AC 70 ms
71,496 KB
testcase_02 AC 71 ms
71,320 KB
testcase_03 AC 70 ms
71,176 KB
testcase_04 AC 75 ms
71,368 KB
testcase_05 AC 72 ms
71,156 KB
testcase_06 AC 73 ms
71,340 KB
testcase_07 AC 71 ms
71,196 KB
testcase_08 AC 71 ms
71,200 KB
testcase_09 AC 70 ms
71,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
N,M=[int(input()) for i in range(2)]
for i in range(M):
	P=list(map(int,input().split()))
	if N in P:
		N=sum(P)-N
print(N)
0