結果
| 問題 |
No.1632 Sorting Integers (GCD of M)
|
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2021-07-30 20:37:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 340 bytes |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 82,252 KB |
| 実行使用メモリ | 54,144 KB |
| 最終ジャッジ日時 | 2024-09-15 22:28:28 |
| 合計ジャッジ時間 | 4,226 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 43 WA * 16 |
ソースコード
N=int(input())
C=list(map(int,input().split()))
mod=10**9+7
if max(C)==N:
ANS=0
for i in range(9):
if C[i]:
ANS=(pow(10,N,mod)-1)*pow(9,mod-2,mod)*(i+1)%mod
print(ANS)
exit()
x=sum([C[i]*(i+1) for i in range(9)])
ANS=1
if sum([C[i-1] for i in range(1,10,2)])==0:
ANS*=2
if x%3==0:
ANS*=3
if x%9==0:
ANS*=3
print(ANS)
googol_S0