文章

75

粉丝

0

获赞

147

访问

8.8k

头像
求S(n) 题解:
P1500
发布于2026年2月21日 15:30
阅读数 27

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

int main(){
    int n;
    while(cin >> n){
        int temp = ((n%3)*(n%3)*(n%3)*(n%3)*(n%3))%3;
        cout << temp << endl;
    }
    return 0;
}

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发