結果

問題 No.1915 Addition
ユーザー tetztetz
提出日時 2022-04-29 21:47:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 416 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 71,412 KB
最終ジャッジ日時 2023-09-11 12:45:39
合計ジャッジ時間 3,000 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,384 KB
testcase_01 AC 74 ms
71,372 KB
testcase_02 AC 75 ms
71,140 KB
testcase_03 AC 75 ms
71,252 KB
testcase_04 AC 73 ms
71,412 KB
testcase_05 AC 75 ms
71,200 KB
testcase_06 AC 75 ms
71,252 KB
testcase_07 AC 75 ms
71,144 KB
testcase_08 AC 74 ms
71,412 KB
testcase_09 AC 75 ms
71,188 KB
testcase_10 AC 76 ms
71,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0