取模有问题??
  • 板块灌水区
  • 楼主little_kongbai
  • 当前回复12
  • 已保存回复12
  • 发布时间2020/12/26 10:13
  • 上次更新2023/11/5 05:40:05
查看原帖
取模有问题??
232205
little_kongbai楼主2020/12/26 10:13
	#include<bits/stdc++.h>
	using namespace std;
	int main(){
		for(int i=1;i<=1000;i++){
            if(pow(1,i)+pow(2,i)+pow(3,i)+pow(4,i)%5==0)cout<<i;
        }
		return 0;
	}

RT所示 编译失败求助

2020/12/26 10:13
加载中...