結果

問題 No.1915 Addition
ユーザー june19312
提出日時 2022-06-14 11:05:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 81,736 KB
実行使用メモリ 53,992 KB
最終ジャッジ日時 2024-10-02 05:02:17
合計ジャッジ時間 1,969 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for i in range(T):
    tmp = int(input())
    x = tmp
    while True:
        tmp2 = int(str(tmp)+str(x))
        tmp3 = tmp+x

        if tmp2%tmp3 == 0:
            print(x)
            break
        else:
            x+=tmp
0