結果
問題 |
No.1312 Snake Eyes
|
ユーザー |
|
提出日時 | 2020-12-09 00:17:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 184 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,568 KB |
最終ジャッジ日時 | 2024-09-18 22:05:49 |
合計ジャッジ時間 | 6,326 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 TLE * 1 -- * 48 |
ソースコード
from math import log, nan n = int(input()) for p in range(2, n + 2): l = [(n // pow(p, i)) % p for i in range(int(log(n, p)) + 1)] if len(set(l)) == 1: exit(print(p))