結果

問題 No.889 素数!
ユーザー 双六双六
提出日時 2020-08-26 06:01:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 723 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 82,108 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2024-04-24 10:38:14
合計ジャッジ時間 4,229 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,632 KB
testcase_01 WA -
testcase_02 AC 39 ms
53,888 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 38 ms
53,632 KB
testcase_06 AC 38 ms
53,888 KB
testcase_07 AC 41 ms
53,888 KB
testcase_08 AC 40 ms
53,888 KB
testcase_09 AC 38 ms
53,632 KB
testcase_10 AC 39 ms
53,632 KB
testcase_11 AC 38 ms
53,632 KB
testcase_12 AC 38 ms
53,888 KB
testcase_13 WA -
testcase_14 AC 38 ms
53,504 KB
testcase_15 WA -
testcase_16 AC 39 ms
53,760 KB
testcase_17 WA -
testcase_18 AC 38 ms
53,704 KB
testcase_19 WA -
testcase_20 AC 39 ms
53,760 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 39 ms
53,888 KB
testcase_25 WA -
testcase_26 AC 41 ms
54,016 KB
testcase_27 WA -
testcase_28 AC 40 ms
53,488 KB
testcase_29 AC 40 ms
53,632 KB
testcase_30 AC 40 ms
53,372 KB
testcase_31 WA -
testcase_32 AC 39 ms
54,144 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 40 ms
53,568 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 39 ms
53,632 KB
testcase_42 WA -
testcase_43 AC 38 ms
53,632 KB
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 38 ms
53,632 KB
testcase_48 WA -
testcase_49 AC 38 ms
53,656 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 AC 37 ms
53,888 KB
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 AC 39 ms
53,504 KB
testcase_60 WA -
testcase_61 AC 38 ms
53,888 KB
testcase_62 WA -
testcase_63 WA -
権限があれば一括ダウンロードができます

ソースコード

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()))

prime = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61]
kanzen = [6, 28]
heihou = [4, 9, 16, 25, 36, 49]
rippou = [8, 27]

#処理内容
def main():
	N = int(input())
	L = [0] * 64
	for i in prime:
		L[i] = 1
	for i in kanzen:
		L[i] = 2
	for i in heihou:
		L[i] = 3
	for i in rippou:
		L[i] = 4

	if L[N] == 0:
		print(i)
	elif L[N] == 1:
		print("Sosu!")
	elif L[N] == 2:
		print("Kanzensu!")
	elif L[N] == 3:
		print("Heihosu!")
	else:
		print("Ripposu!")



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