結果
問題 | No.889 素数! |
ユーザー |
![]() |
提出日時 | 2020-11-15 16:05:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 728 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-23 01:15:52 |
合計ジャッジ時間 | 3,674 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 56 WA * 5 |
ソースコード
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)