結果
問題 | No.2562 数字探しゲーム(緑以下コンver.) |
ユーザー | ゼット |
提出日時 | 2023-12-20 23:46:59 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 77,952 KB |
最終ジャッジ日時 | 2024-11-19 21:40:48 |
合計ジャッジ時間 | 1,979 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 RE * 1 |
ソースコード
Q=int(input()) for _ in range(Q): M=int(input()) A=list(map(int,input().split())) c='' for i in range(1,10): x=A[i-1] for y in range(x): c=c+str(i) c=int(c) ans=c*10**9 z=ans%M if z>0: ans+=M-z print(ans)