結果
問題 |
No.1312 Snake Eyes
|
ユーザー |
|
提出日時 | 2020-12-09 00:10:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 200 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-09-18 21:56:21 |
合計ジャッジ時間 | 5,723 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 21 WA * 64 |
ソースコード
from math import log n = int(input()) for i in range(2, int(n ** 0.5) + 1): l = [(n // pow(i, p)) % i for p in range(int(log(n, i)))] if len(set(l)) == 1: exit(print(i)) print(n - 1)