結果
| 問題 |
No.1747 Many Formulae 2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-02 12:27:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-11 09:20:48 |
| 合計ジャッジ時間 | 1,298 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 19 |
ソースコード
#yuki1747
import itertools
from sympy import isprime
res=0
s=input()
n=len(s)
for b in range(1<<(n-1)):
t=[]
for i in range(n):
t.append(s[i])
if i< n-1 and b>>i&1:
t.append('+')
res+=isprime(eval(''.join(t)))
print(res)