結果
問題 | No.889 素数! |
ユーザー |
![]() |
提出日時 | 2022-07-24 19:03:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-06 13:58:14 |
合計ジャッジ時間 | 3,009 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 61 |
ソースコード
n=int(input()) if n==6: print("Kanzensu!") if n==28: print("Kanzensu!") l1=[4,9,16,25,36,49] l2=[8,27] if n in l1: print("Heihosu!") if n in l2: print("Ripposu!") from sympy import isprime if isprime(n): print("Sosu!") else: print(n)