結果

問題 No.889 素数!
ユーザー StarMatyanStarMatyan
提出日時 2020-11-15 16:05:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 728 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-09-30 07:00:26
合計ジャッジ時間 2,729 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,816 KB
testcase_01 AC 15 ms
7,744 KB
testcase_02 AC 13 ms
7,744 KB
testcase_03 AC 14 ms
7,852 KB
testcase_04 AC 12 ms
7,868 KB
testcase_05 AC 13 ms
7,856 KB
testcase_06 AC 14 ms
7,748 KB
testcase_07 WA -
testcase_08 AC 13 ms
7,796 KB
testcase_09 AC 12 ms
7,796 KB
testcase_10 AC 12 ms
7,796 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 12 ms
7,856 KB
testcase_14 AC 14 ms
7,784 KB
testcase_15 AC 13 ms
7,868 KB
testcase_16 AC 12 ms
7,856 KB
testcase_17 AC 14 ms
7,808 KB
testcase_18 WA -
testcase_19 AC 14 ms
7,852 KB
testcase_20 AC 13 ms
7,744 KB
testcase_21 AC 14 ms
7,816 KB
testcase_22 AC 13 ms
7,744 KB
testcase_23 AC 13 ms
7,856 KB
testcase_24 AC 14 ms
7,808 KB
testcase_25 AC 14 ms
7,816 KB
testcase_26 AC 13 ms
7,832 KB
testcase_27 AC 12 ms
7,956 KB
testcase_28 WA -
testcase_29 AC 14 ms
7,796 KB
testcase_30 AC 14 ms
7,856 KB
testcase_31 AC 14 ms
7,836 KB
testcase_32 AC 14 ms
7,852 KB
testcase_33 AC 13 ms
7,924 KB
testcase_34 AC 14 ms
7,820 KB
testcase_35 AC 14 ms
7,744 KB
testcase_36 AC 15 ms
7,856 KB
testcase_37 AC 15 ms
7,792 KB
testcase_38 AC 14 ms
7,820 KB
testcase_39 AC 14 ms
7,744 KB
testcase_40 AC 14 ms
7,784 KB
testcase_41 AC 13 ms
7,852 KB
testcase_42 AC 13 ms
7,820 KB
testcase_43 AC 13 ms
7,784 KB
testcase_44 AC 13 ms
7,852 KB
testcase_45 AC 13 ms
7,792 KB
testcase_46 AC 12 ms
7,956 KB
testcase_47 AC 12 ms
7,852 KB
testcase_48 AC 13 ms
7,952 KB
testcase_49 AC 14 ms
7,856 KB
testcase_50 AC 14 ms
7,816 KB
testcase_51 AC 14 ms
7,996 KB
testcase_52 AC 12 ms
7,816 KB
testcase_53 AC 14 ms
7,852 KB
testcase_54 AC 14 ms
7,744 KB
testcase_55 AC 13 ms
7,964 KB
testcase_56 AC 13 ms
7,744 KB
testcase_57 AC 14 ms
7,820 KB
testcase_58 AC 13 ms
7,952 KB
testcase_59 AC 13 ms
7,792 KB
testcase_60 AC 13 ms
7,868 KB
testcase_61 AC 14 ms
7,820 KB
testcase_62 AC 13 ms
7,800 KB
testcase_63 AC 13 ms
7,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

intstr = int(input())
handan = 0
result = 0
result_s=""

heihonum = 8
ripponum = 4

if intstr >=2:
	while heihonum > 0:
		if intstr == int(heihonum*heihonum):
			result_s = "Heihosu!"
			handan = 1
		heihonum = heihonum - 1

	while ripponum > 0:
		if intstr == int(ripponum*ripponum):
			result_s = "Ripposu!"
			handan = 2
		ripponum = ripponum - 1

	if intstr ==6 or intstr ==28:
		result_s = "Kanzensu!"
		handan = 3
	
	if intstr ==2 or intstr ==3 or intstr ==5 or intstr ==7:
		result_s = "Sosu!"
		handan = 4	

	if intstr%2 > 0 and intstr%3>0 and intstr%5>0 and intstr%7>0:
		result_s = "Sosu!"
		handan = 4	

	if handan == 0:
		result = intstr
else:
	result = intstr


if handan > 0:
	print(result_s)
else:
	print(result)
0