結果
| 問題 |
No.1915 Addition
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-29 23:07:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,564 KB |
| 最終ジャッジ日時 | 2024-06-29 04:48:36 |
| 合計ジャッジ時間 | 3,724 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | TLE * 1 -- * 9 |
ソースコード
from sys import stdin
def main():
input = lambda: stdin.readline()[:-1]
T = int(input())
for _ in [0] * T:
N = input()
m = 9 - (sum(map(int, N)) % 9)
while 1:
if not int(N + str(m)) % (int(N) + m):
break
m += 9
print(m)
main()