1 solutions

  • 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

    Information

    ID
    334
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    4
    Tags
    # Submissions
    92
    Accepted
    41
    Uploaded By