結果

問題 No.3028 No.9999
ユーザー bfs84
提出日時 2025-02-28 20:23:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 2,432 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 62,204 KB
最終ジャッジ日時 2025-02-28 20:23:25
合計ジャッジ時間 4,073 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
プレゼンテーションモードにする

import sys
import math
import bisect
import itertools
from collections import defaultdict, deque
from heapq import heappush, heappop, heapify
n = int(input())
cur = 1
for i in range(1, n):
cur = (cur * 10) % n
if ((cur - 1) + n) % n == 0:
print(i)
exit()
# math
# #
# math.ceil(3.7) # : 4
# math.floor(3.7) # : 3
# math.trunc(3.7) # : 3
# math.fabs(-3.7) # : 3.7
# #
# math.exp(1) # e^x
# math.log(x) #
# math.log10(x) #
# math.pow(2, 3) # 2^3 = 8
# #
# math.sin(x)
# math.cos(x)
# math.tan(x)
# math.degrees(x) #
# math.radians(x) #
# #
# math.pi # π
# math.e #
# #
# math.gcd(a, b) #
# math.lcm(a, b) # Python 3.9
# math.factorial(n) #
# math.sqrt(x) #
# bisect
# #
# bisect.bisect_left(a, x) # x
# bisect.bisect_right(a, x) # x
# bisect.bisect(a, x) # bisect_right
# bisect.insort_left(a, x) # x
# bisect.insort_right(a, x) # x
# collections
# # defaultdict:
# d = defaultdict(int) # 0
# d = defaultdict(list) # []
# d = defaultdict(set) # set()
# # deque:
# d = deque() #
# d.append(x) #
# d.appendleft(x) #
# d.pop() #
# d.popleft() #
# d.rotate(n) # n
# heapq
# #
# heappush(heap, item) #
# item = heappop(heap) #
# item = heap[0] #
# heapify(list) #
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0