文章

113

粉丝

1

获赞

892

访问

96.6k

头像
求S(n) 题解:
P1500
发布于 2026年2月
阅读数 1.0k

#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;
}

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发