xi_rong 题解分享 · 2025/3/7
报数游戏(结果填空) - 题解
``` #include <iostream> using namespace std; int main(){ const long long n = 202420242024; const long long cycle = (n-1)/10; const int remainder = (n-1)%10; const int base[]={20,24,40,48,60,72,80,96,100,120}; const long long result = base[remainder] + 120*cycle; cout<<result<<endl; return 0; } ```
查看全文
1 0 0 6