結果
| 問題 | No.3692 Calculate Mu |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-07 03:08:24 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 29 ms / 2,000 ms |
| + 884µs | |
| コード長 | 215 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 81,644 KB |
| 実行使用メモリ | 61,864 KB |
| 最終ジャッジ日時 | 2026-09-07 03:08:28 |
| 合計ジャッジ時間 | 1,713 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#制約が読めない
n=int(input())
Z=[]
for i in range(2,10**6+1):
while n%i==0:
Z.append(i)
n//=i
if n!=1:
Z.append(n)
if len(Z)!=len(set(Z)):
print(0)
else:
print(pow(-1,len(Z)))