acgo题库
  • 首页
  • 题库
  • 学习
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情提交记录(0)
  • 最慢的题解

    #include <iostream> using namespace std; int calculateEnergy(int x) { int energy = 0; while (x > 0) { energy += x % 10; x /= 10; } return energy; } int main() { int N, L, R; cin >> N >> L >> R; int total = 0; for (int i = 1; i <= N; ++i) { int energy = calculateEnergy(i); if (energy >= L && energy <= R) { total += i; } } cout << total << endl; return 0; }

    userId_undefined

    谷锦源

    秩序白银贪心·贪心尝试者格式·格式排版员分支·分支解题者循环·循环打卡人数组·数组操作员
    4阅读
    0回复
    1点赞
  • 题解

    userId_undefined

    zyz610

    28阅读
    1回复
    1点赞
  • 题解

    userId_undefined

    zsy

    时空双修者题解仙人7月全勤卷王8月全勤卷王秩序白银快乐小狗
    10阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页