結果

問題 No.632 穴埋め門松列
ユーザー 双六双六
提出日時 2020-08-11 03:41:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 494 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 82,576 KB
実行使用メモリ 60,544 KB
最終ジャッジ日時 2024-04-17 16:55:31
合計ジャッジ時間 830 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
60,544 KB
testcase_01 AC 44 ms
60,032 KB
testcase_02 AC 41 ms
59,776 KB
testcase_03 AC 40 ms
60,032 KB
testcase_04 AC 37 ms
60,032 KB
testcase_05 AC 37 ms
60,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

#処理内容
def main():
	a, b, c = input().split()
	if a == "?":
		if b == "2":
			print(4)
		else:
			print(1)

	elif a == "2":
		if b == "?":
			print(14)
		else:
			print(1)
	else:
		if b == "?":
			print(14)
		else:
			print(4)




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