Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127854 周歆童(初一23 单峰排列 C++ 通过 100 0 MS 248 KB 291 2024-01-25 10:43:17

Tests(10/10):


#include<bits/stdc++.h> #define int long long using namespace std; const int mod=1234567; int fastpow(int a,int n){ int ans=1; while(n){ if(n&1)ans=(ans*a)%mod; n>>=1; a=(a*a)%mod; } return ans; } int n; signed main(){ cin>>n; cout<<fastpow(2,n-1); return 0; }


测评信息: