結果

問題 No.1915 Addition
ユーザー ikomaikoma
提出日時 2022-04-29 22:46:55
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 86,880 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-09-11 14:10:29
合計ジャッジ時間 2,806 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,400 KB
testcase_01 AC 69 ms
71,172 KB
testcase_02 AC 72 ms
71,380 KB
testcase_03 AC 68 ms
71,352 KB
testcase_04 AC 68 ms
71,168 KB
testcase_05 AC 74 ms
71,284 KB
testcase_06 AC 71 ms
71,572 KB
testcase_07 AC 70 ms
71,188 KB
testcase_08 AC 69 ms
71,412 KB
testcase_09 AC 70 ms
71,352 KB
testcase_10 AC 70 ms
71,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for t in range(T):
    N=int(input())
    for i in range(1,19):
        x=N*(10**i - 1-3)
        if x%3==0:
            M=x//3
            print(x//3)
            A=N+M
            B=int(str(N)+str(M))
            assert B%A==0
            break
0