結果

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

テストケース

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

ソースコード

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 or intstr%3>0 or intstr%5>0 or 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