結果

問題 No.1915 Addition
ユーザー 👑 tatyam
提出日時 2025-07-15 17:39:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 418 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 54,324 KB
最終ジャッジ日時 2025-07-15 17:39:18
合計ジャッジ時間 1,985 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
def solve():
  N = input()
  n = int(N)
  for x in range(1, 10 ** 10):
    m = n * x
    M = str(m)
    if int(N + M) % (n + m) == 0:
      return m
for _ in range(T):
  print(solve())
0