結果

問題 No.1915 Addition
ユーザー DrDrpilot
提出日時 2022-04-30 12:46:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,788 KB
実行使用メモリ 75,968 KB
最終ジャッジ日時 2024-06-29 18:26:44
合計ジャッジ時間 6,694 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

t=int(input())
def solve(n):
    for i in range(1,10**5+1):
        if int(str(n)+str(i))%(n+i)==0:
            print(i)
            break
for _ in range(t):
    solve(int(input()))
0