1 条题解

  • 1
    @ 2025-7-16 14:55:42

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

    int main() { int a[15] = {1, 22, 122, 212, 221, 333, 1333, 3133, 3313, 3331, 4444}; int l, r, s = 0; cin >> l >> r; for (int i = 0; i <= 10; i++) { if (a[i] >= l && a[i] <= r) s = s + a[i]; } cout << s; return 0; }

    • 1

    信息

    ID
    334
    时间
    1000ms
    内存
    64MiB
    难度
    4
    标签
    递交数
    102
    已通过
    44
    上传者