标签:The rip mono 一个 strong n+1 break 证明 ble
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5504 Accepted Submission(s): 3597
Problem Description
#include<iostream> using namespace std; int main() { int n,p; while(cin>>n) { int x=1; for(p=1;;p++){ x=(x*2)%(2*n+1); if(x==1) break; } cout<<p<<endl; } }
标签:The rip mono 一个 strong n+1 break 证明 ble
原文地址:https://www.cnblogs.com/fromzore/p/9807241.html