Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129357 黄恩宁 魔法生物 C++ 解答错误 0 0 MS 260 KB 213 2024-01-26 23:32:10

Tests(0/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; } return 0; }


测评信息: