結果
| 問題 |
No.1255 ハイレーツ・オブ・ボリビアン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-09 21:59:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 1,540 ms |
| コンパイル使用メモリ | 166,816 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-20 11:16:03 |
| 合計ジャッジ時間 | 5,187 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 TLE * 1 -- * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int T;
cin >> T;
for(int i=0;i<T;i++){
int N;
cin >> N;
int a=0;
int ans=1;
while(true){
ans=ans*2%(N*2-1);
a++;
if(ans==1){
break;
}
}
cout << a << endl;
}
}