結果

問題 No.3384 1122-like Number (Python)
コンテスト
ユーザー alcea
提出日時 2025-11-20 00:22:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 259 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 148,896 KB
最終ジャッジ日時 2025-11-22 12:35:23
合計ジャッジ時間 15,777 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2 TLE * 1
other AC * 1 RE * 12 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n=int(input())
p=[*range(n+1)]
p[1]=1
for i in range(2,n+1):
  if p[i]<i:continue
  for j in range(i*i,n+1,i):p[j]=i

ans=0
for i in range(2,n+1):
  q=[]
  for j in range(4):
    q.append(p[I])
    I//=p[i]
  if I==1 and len(set(q))==4:
    ans+=1

print(ans)
0