結果
| 問題 | No.3028 No.9999 |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-03-05 03:31:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 126 bytes |
| 記録 | |
| コンパイル時間 | 593 ms |
| コンパイル使用メモリ | 82,216 KB |
| 実行使用メモリ | 59,164 KB |
| 最終ジャッジ日時 | 2025-03-05 03:31:36 |
| 合計ジャッジ時間 | 4,709 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 2 |
ソースコード
N = int(input())
if N == 1:
print(1)
exit()
r = 9
k = 1
while r != 0:
r = (r * 10 + 9) % N
k += 1
print(k)
norioc