結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-08-21 11:31:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,079 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-10-15 00:48:04 |
合計ジャッジ時間 | 5,731 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 26 WA * 5 RE * 1 |
ソースコード
# your code goes here#537 useriddef f(s,t):if s==t:return 0elif s<t:return -1else:return 1def bs(gs,D):l=len(D)j=0ts=1if l>0:p=1m=l//2j+=mts=f(gs,D[j])while m>1 and ts!=0:if ts*p>0:l-=m+1else:l=mm=l//2if ts<0:j-=m+1p=-1else:j+=m+1p=1ts=f(gs,D[j])if ts*p>0:l-=m+1else:l=mif l==1 and ts!=0:j+=tsts=f(gs,D[j])if ts!=0:if ts==-1:ts=0D.insert(j+ts,gs)return D# print(tsN=int(input())i=1c=0s=0L=[]while i*i<N:if N%i==0:i1=N//ik=["",""]k[0]=int(str(i)+str(i1))k[1]=int(str(i1)+str(i))for j in range(2):L=bs(k[j],L)i+=1if i*i==N:L=bs(k[j],L)#c*=2#if s==1:# c-=1print(len(L))