結果

問題 No.1255 ハイレーツ・オブ・ボリビアン
ユーザー kozykozy
提出日時 2020-10-09 22:05:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 192 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 12,524 KB
最終ジャッジ日時 2023-09-27 17:11:13
合計ジャッジ時間 3,932 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
12,220 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 AC 21 ms
7,772 KB
testcase_03 AC 20 ms
7,836 KB
testcase_04 AC 21 ms
7,804 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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