結果

問題 No.726 Tree Game
ユーザー 双六双六
提出日時 2020-07-22 00:57:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 454 bytes
コンパイル時間 416 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 71,936 KB
最終ジャッジ日時 2023-08-30 08:54:18
合計ジャッジ時間 3,974 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,608 KB
testcase_01 AC 91 ms
71,620 KB
testcase_02 AC 95 ms
71,840 KB
testcase_03 AC 91 ms
71,492 KB
testcase_04 AC 90 ms
71,468 KB
testcase_05 AC 89 ms
71,612 KB
testcase_06 AC 90 ms
71,368 KB
testcase_07 WA -
testcase_08 AC 89 ms
71,760 KB
testcase_09 WA -
testcase_10 AC 91 ms
71,556 KB
testcase_11 AC 90 ms
71,936 KB
testcase_12 AC 90 ms
71,532 KB
testcase_13 AC 89 ms
71,564 KB
testcase_14 AC 90 ms
71,592 KB
testcase_15 AC 92 ms
71,752 KB
testcase_16 AC 90 ms
71,616 KB
testcase_17 AC 91 ms
71,688 KB
testcase_18 AC 92 ms
71,776 KB
testcase_19 AC 93 ms
71,836 KB
testcase_20 AC 92 ms
71,592 KB
testcase_21 AC 91 ms
71,584 KB
testcase_22 AC 94 ms
71,556 KB
testcase_23 AC 92 ms
71,664 KB
testcase_24 AC 91 ms
71,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	Y, X = getlist()
	ans = 0
	if Y % 2 == 0:
		ans ^= 1
	if X % 2 == 0:
		ans ^= 1
	if Y == 1:
		ans ^= 1
	if X == 1:
		ans ^= 1

	if ans == 0:
		print("Second")
	else:
		print("First")




if __name__ == '__main__':
	main()
0