文章

37

粉丝

168

获赞

13

访问

269.8k

头像
P1500 解题思路分享
P1500
发布于2021年3月11日 20:37
阅读数 6.8k

#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n;
	while(cin>>n){
		int ans=1;
		for(int i=0; i<5; i++){
			ans*=(n%3);
		}
		cout<<ans%3<<endl;
		
	}
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发