文章

111

粉丝

1

获赞

741

访问

21.9k

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

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

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发