結果
問題 |
No.3264 岩井数
|
ユーザー |
![]() |
提出日時 | 2025-09-06 15:43:21 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 682 bytes |
コンパイル時間 | 488 ms |
コンパイル使用メモリ | 82,712 KB |
実行使用メモリ | 66,664 KB |
最終ジャッジ日時 | 2025-09-06 15:43:31 |
合計ジャッジ時間 | 5,365 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 4 WA * 26 |
ソースコード
import sys, time, random, heapq, math, itertools, copy from collections import deque, Counter, defaultdict from bisect import bisect, bisect_left, bisect_right import heapq as hq from functools import cache, cmp_to_key def debug(*x):print('debug:',*x, file=sys.stderr) sys.setrecursionlimit(300000) input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 61 - 1 mod = 998244353 dir = [(0, 1), (0, -1), (1, 0), (-1, 0)] N = ii() pn = (N-9) // 10 r = (9 * pn + 1) % N c = pow(10, 8, N) for k in range(9, 2000): c = (c * 10) % N if c == r: print("1" * k + "9") exit()