結果
| 問題 | No.3028 No.9999 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-21 21:29:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 731 ms / 4,000 ms |
| コード長 | 481 bytes |
| 記録 | |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 85,020 KB |
| 実行使用メモリ | 86,672 KB |
| 最終ジャッジ日時 | 2026-07-04 21:39:14 |
| 合計ジャッジ時間 | 5,103 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
n = int(input())
#alist = list(map(int,input().split()))
#alist = []
#s = input()
#n,m = map(int,input().split())
#for i in range(n):
# alist.append(list(map(int,input().split())))
x = 9 % n
for i in range(1,1000000000):
if x == 0:
exit(print(i))
x *= 10
x += 9
x %= n