結果
問題 |
No.1312 Snake Eyes
|
ユーザー |
![]() |
提出日時 | 2020-12-15 07:05:48 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 75,764 KB |
最終ジャッジ日時 | 2024-09-20 01:27:17 |
合計ジャッジ時間 | 19,634 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 74 WA * 11 |
ソースコード
def calc(N,x): A=N%x i=1 while N: r=N%x if r!=A: return 0 N//=x return 1 N=int(input()) for x in range(2,10**7): if calc(N,x)==1: print(x) break else: print(N-1)