Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129358 黄恩宁 魔法生物 C++ 通过 100 0 MS 268 KB 219 2024-01-26 23:35:06

Tests(1/1):


#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main() { int n; while(cin>>n) { if(n==0) break; cout<<(int)(pow(2,n-1)+1)%n<<endl; } return 0; }


测评信息: