Submission details
Task:Vuodet
Sender:hltk
Submission time:2025-09-06 11:38:48 +0300
Language:C++ (C++20)
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.00 sdetails
#2ACCEPTED0.00 sdetails
#3ACCEPTED0.00 sdetails

Code

#include <iostream>
#include <vector>
using namespace std;
auto leet = [](int x) {
  auto str = to_string(x * 1337);
  auto x_str = to_string(x);
  int j = 0;
  for (char c : str) {
    if (j < 4 && c == x_str[j]) ++j;
  }
  return j == 4;
};
int main() {
  int a, b;
  cin >> a >> b;
  vector<int> r;
  for (int i = a; i <= b; i++) {
    if (leet(i)) r.push_back(i);
  }
  cout << size(r) << endl;
  for (auto u : r) cout << u << '\n';
}

Test details

Test 1

Verdict: ACCEPTED

input
1600 2400

correct output
6
1625
2000
2025
2050
...

user output
6
1625
2000
2025
2050
...

Test 2

Verdict: ACCEPTED

input
1773 1773

correct output
0

user output
0

Test 3

Verdict: ACCEPTED

input
2025 2025

correct output
1
2025

user output
1
2025