听灌多
  • 板块灌水区
  • 楼主IOI_official
  • 当前回复8
  • 已保存回复8
  • 发布时间2025/2/8 15:16
  • 上次更新2025/2/8 17:08:52
查看原帖
听灌多
964579
IOI_official楼主2025/2/8 15:16

P3811 编译失败,显示Nothing is compiled: OUTPUT exceeds.

#include<bits/stdc++.h>
#define int long long
using namespace std;
const int N=3e6+5;
int inv[N]={0,1};
int n,p;
signed main(){
   cin>>n>>p;
   cout<<1<<endl;
   for(int i=2;i<=n;i++){
   		inv[i]=(int)(p-(p/i)*inv[p%i]%p);
   		cout<<inv[i]<<endl;
   }
   return 0;
}
2025/2/8 15:16
加载中...