結果

問題 No.889 素数!
ユーザー StarMatyan
提出日時 2020-11-15 16:00:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 690 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-23 01:15:44
合計ジャッジ時間 3,624 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 19 WA * 42
権限があれば一括ダウンロードができます

ソースコード

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	


else:
	result = intstr


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