結果
| 問題 | 
                            No.1915 Addition 
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-04-29 21:47:05 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 43 ms / 2,000 ms | 
| コード長 | 269 bytes | 
| コンパイル時間 | 267 ms | 
| コンパイル使用メモリ | 82,156 KB | 
| 実行使用メモリ | 52,480 KB | 
| 最終ジャッジ日時 | 2024-06-29 03:09:17 | 
| 合計ジャッジ時間 | 1,771 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 10 | 
ソースコード
T = int(input())
for i in range(T):
    iN = int(input())
    test = iN * 2
    A = iN + test
    B = iN * (10 ** len(str(test))) + test
    while B % A != 0:
        test += A - B % A
        A = iN + test
        B = iN * (10 ** len(str(test))) + test
    print(test)