結果
| 問題 | No.3692 Calculate Mu |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-28 01:47:33 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 68 ms / 2,000 ms |
| + 669µs | |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 95,300 KB |
| 実行使用メモリ | 83,200 KB |
| 最終ジャッジ日時 | 2026-09-06 17:32:11 |
| 合計ジャッジ時間 | 2,260 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
N = int(input()) mu = 1 for p in range(2, int(N ** 0.5) + 100): if N % p != 0: continue mu *= -1 if N % (p * p) == 0: mu = 0 while N % p == 0: N //= p if N != 1: mu *= -1 print(mu)