結果

問題 No.3028 No.9999
コンテスト
ユーザー nikoro256
提出日時 2025-02-21 21:46:36
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 500 ms / 4,000 ms
+ 873µs
コード長 145 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 78 ms
コンパイル使用メモリ 64,628 KB
実行使用メモリ 57,764 KB
最終ジャッジ日時 2026-10-24 22:38:52
合計ジャッジ時間 3,990 ms
ジャッジサーバーID
(参考情報)
judge7_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N=int(input())
t=10
if (t-1)%N==0:
    print(1)
    exit()
c=1
while True:
    if t==1:
        print(c)
        exit()
    t=(t*10)%N

    c+=1
0