結果
問題 | No.1730 GCD on Blackboard in yukicoder |
ユーザー |
![]() |
提出日時 | 2021-11-05 22:55:29 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 293 bytes |
コンパイル時間 | 498 ms |
コンパイル使用メモリ | 82,096 KB |
実行使用メモリ | 119,356 KB |
最終ジャッジ日時 | 2024-11-06 14:03:58 |
合計ジャッジ時間 | 7,020 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | TLE * 1 -- * 23 |
ソースコード
import mathn=int(input())a=list(map(int,input().split()))a_num=math.isqrt(max(a))tmplist=[]for i in range(1,max(a)+1):tmp=0for anum in a:if anum%i==0:tmp+=1tmplist.append(tmp)for i in range(n):v=tmplist[::-1].index(n-i)print(len(tmplist)-v)