結果

問題 No.1255 ハイレーツ・オブ・ボリビアン
ユーザー kozy
提出日時 2020-10-09 22:08:53
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 201 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 63,488 KB
最終ジャッジ日時 2024-07-20 11:44:42
合計ジャッジ時間 4,234 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for i in range(T):
    N=int(input())
    N=(2*N)-1
    ans=1
    s=0
    while True:
        ans*=2
        ans%=N
        s+=1
        if ans==1:
            print(s)
            break
0