| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127751 | 刘星辰liuxingchen | 魔法生物 | C++ | Accepted | 100 | 0 MS | 264 KB | 190 | 2024-01-25 10:07:44 |
#include<bits/stdc++.h> using namespace std; int n; int main() { while(cin>>n) { if(n==0) { return 0; } cout<<((int)pow(2,n-1)+1)%n; cout<<endl; } return 0; }