[contest:1992]↵
↵
### Leaked Solution of D:↵
`almost all D submissions using BFS are copied.`↵
↵
<spoiler summary="D ">↵
↵
~~~~~↵
#include <iostream>↵
#include <queue>↵
#include <vector>↵
#include <string>↵
↵
using namespace std;↵
↵
struct State {↵
int pos;↵
int swim;↵
};↵
↵
int main() {↵
int t;↵
cin >> t;↵
while (t--) {↵
int n, m, k;↵
cin >> n >> m >> k;↵
string river;↵
cin >> river;↵
↵
vector<bool> visited(n + 2, false);↵
queue<State> q;↵
↵
// Starting point at position 0↵
q.push({0, 0});↵
visited[0] = true;↵
↵
bool canReach = false;↵
↵
while (!canReach && !q.empty()) {↵
State current = q.front();↵
q.pop();↵
↵
int pos = current.pos;↵
int swim = current.swim;↵
↵
// Try jumping from the current position↵
if (pos == 0 || river[pos - 1] == 'L') {↵
for (int jump = 1; jump <= m; ++jump) {↵
int newPos = pos + jump;↵
if (newPos == n + 1) {↵
canReach = true;↵
break;↵
}↵
if (newPos <= n && river[newPos - 1] != 'C' && !visited[newPos]) {↵
visited[newPos] = true;↵
q.push({newPos, swim});↵
}↵
}↵
}↵
↵
// Try swimming to the next position if currently in water↵
if (pos > 0 && pos <= n && river[pos - 1] == 'W' && swim < k) {↵
int newPos = pos + 1;↵
if (newPos == n + 1) {↵
canReach = true;↵
break;↵
}↵
if (newPos <= n && river[newPos - 1] != 'C' && !visited[newPos]) {↵
visited[newPos] = true;↵
q.push({newPos, swim + 1});↵
}↵
}↵
}↵
↵
cout << (canReach ? "YES" : "NO") << endl;↵
}↵
return 0;↵
}↵
~~~~~↵
↵
</spoiler>↵
↵
↵
### List of Cheater forED:↵
↵
<spoiler summary="D Cheaters">↵
[user:DylanT,2024-07-12]↵
[user:bharath_kumar2005,2024-07-12]↵
[user:Sumit2023102,2024-07-12]↵
[user:Emil_Hajiyev,2024-07-12]↵
[user:xinglili,2024-07-12]↵
[user:ricaxov,2024-07-12]↵
[user:adxtya02,2024-07-12]↵
[user:hariaumm,2024-07-12]↵
[user:noname_000,2024-07-12]↵
↵
[user:ayush201,2024-07-12]↵
[user:u_kidding_me,2024-07-12]↵
[user:govinthan_ks,2024-07-12]↵
[user:Immortal_22,2024-07-12]↵
[user:thelonewolfclub,2024-07-12]↵
[user:torquise,2024-07-12]↵
[user:VarunGolcha,2024-07-12]↵
[user:shree_swami_samarth,2024-07-12]↵
[user:slayerr_1818,2024-07-12]↵
</spoiler>↵
↵
### Leaked Solution of E:↵
↵
<spoiler summary="E">↵
↵
~~~~~↵
#include <bits/stdc++.h>↵
using namespace std;↵
↵
void run() {↵
int n; cin >> n;↵
↵
vector ans(0, pair(0, 0));↵
↵
string s;↵
for (int a = 1; a <= 10000; a++) {↵
s += to_string(n);↵
for (int b = max(1, int(s.size())-6); b <= min(10000, a100) and b < int(s.size()); b++) {↵
if (to_string(na-b) == s.substr(0, s.size()-b)) {↵
ans.emplace_back(a, b);↵
}↵
}↵
}↵
↵
cout << ans.size() << '\n';↵
for (auto [a, b] : ans) {↵
cout << a << ' ' << b << '\n';↵
}↵
}↵
↵
int main() {↵
cin.tie(0)->sync_with_stdio(0);↵
↵
int t; cin >> t; while (t--) run();↵
} ↵
~~~~~↵
↵
↵
</spoiler>↵
↵
### List of Cheater for E:↵
↵
<spoiler summary="E Cheaters">↵
[user:BugBlue,2024-07-12]↵
[user:hasan1485,2024-07-12]↵
[user:KALiIi24,2024-07-12]↵
[user:thegreat_gordini14,2024-07-12]↵
[user:divyanshubissa88,2024-07-12]↵
[user:muditlodha3,2024-07-12]↵
[user:YuAn.HR,2024-07-12]↵
[user:whu_yx,2024-07-12]↵
[user:akshatchaudhary,2024-07-12]↵
[user:aakash_kalra,2024-07-12]↵
[user:ByteBard16,2024-07-12]↵
[user:wzxaurora,2024-07-12]↵
[user:aloolelopls,2024-07-12]↵
[user:dinskid,2024-07-12]↵
[user:HyperNovaVY,2024-07-12]↵
[user:TLE_lord,2024-07-12]↵
[user:tanush,2024-07-12]↵
[user:_rbr__iiita,2024-07-12]↵
[user:rabi3,2024-07-12]↵
[user:Nitish_Bharat,2024-07-12]↵
</spoiler>↵
↵
Since there are a lot of cheaters this time, are team is still processing and will update this list accordingly.↵
↵
I would like to request [user:MikeMirzayanov,2024-07-12] and the [user:Gornak40,2024-07-12] to take actions on the cheaters as well people who are leaking the solutions.↵
↵
I would also request to take strict action on [user:kyakaregajanke,2024-07-12] who leaked the solutions on Youtube and provided the solutions in a drive link and telegram too.↵
↵
<spoiler summary="Leaked on Youtube">↵
<a href="https://ibb.co/S7Y4P2c"><img src="https://i.ibb.co/zH9Tr1F/pic.png" alt="pic" border="0"></a>↵
[Screenshot link](https://ibb.co/S7Y4P2c)↵
</spoiler>↵
↵
↵
↵
Here is the drive link : [Leaked Solution Drive](https://drive.google.com/drive/folders/1NZDh9PsqOB3tUE2TZECbjbN_Kf2VJ6SO)↵
Anyone with this code has just copied from here .↵
↵
↵
I have would like to thank the entire **Cheat Patrol** team for exposing them.↵
Special thanks to [user:Vladosiya,2024-07-12] for actively helping us in the server and taking actions on convicted cheaters↵
↵
If you are interested in volunteering us in exposing cheaters.↵
You can join our **Cheat Patrol** server : [Cheat Patrol Discord Server](https://discord.com/invite/kKZhfAWKfE)↵
↵
### Leaked Solution of D:↵
`almost all D submissions using BFS are copied.`↵
↵
<spoiler summary="D ">↵
↵
~~~~~↵
#include <iostream>↵
#include <queue>↵
#include <vector>↵
#include <string>↵
↵
using namespace std;↵
↵
struct State {↵
int pos;↵
int swim;↵
};↵
↵
int main() {↵
int t;↵
cin >> t;↵
while (t--) {↵
int n, m, k;↵
cin >> n >> m >> k;↵
string river;↵
cin >> river;↵
↵
vector<bool> visited(n + 2, false);↵
queue<State> q;↵
↵
// Starting point at position 0↵
q.push({0, 0});↵
visited[0] = true;↵
↵
bool canReach = false;↵
↵
while (!canReach && !q.empty()) {↵
State current = q.front();↵
q.pop();↵
↵
int pos = current.pos;↵
int swim = current.swim;↵
↵
// Try jumping from the current position↵
if (pos == 0 || river[pos - 1] == 'L') {↵
for (int jump = 1; jump <= m; ++jump) {↵
int newPos = pos + jump;↵
if (newPos == n + 1) {↵
canReach = true;↵
break;↵
}↵
if (newPos <= n && river[newPos - 1] != 'C' && !visited[newPos]) {↵
visited[newPos] = true;↵
q.push({newPos, swim});↵
}↵
}↵
}↵
↵
// Try swimming to the next position if currently in water↵
if (pos > 0 && pos <= n && river[pos - 1] == 'W' && swim < k) {↵
int newPos = pos + 1;↵
if (newPos == n + 1) {↵
canReach = true;↵
break;↵
}↵
if (newPos <= n && river[newPos - 1] != 'C' && !visited[newPos]) {↵
visited[newPos] = true;↵
q.push({newPos, swim + 1});↵
}↵
}↵
}↵
↵
cout << (canReach ? "YES" : "NO") << endl;↵
}↵
return 0;↵
}↵
~~~~~↵
↵
</spoiler>↵
↵
↵
### List of Cheater for
↵
<spoiler summary="D Cheaters">↵
[user:DylanT,2024-07-12]↵
[user:bharath_kumar2005,2024-07-12]↵
[user:Sumit2023102,2024-07-12]↵
[user:Emil_Hajiyev,2024-07-12]↵
[user:xinglili,2024-07-12]↵
[user:ricaxov,2024-07-12]↵
[user:adxtya02,2024-07-12]↵
[user:hariaumm,2024-07-12]↵
[user:noname_000,2024-07-12]↵
↵
[user:ayush201,2024-07-12]↵
[user:u_kidding_me,2024-07-12]↵
[user:govinthan_ks,2024-07-12]↵
[user:Immortal_22,2024-07-12]↵
[user:thelonewolfclub,2024-07-12]↵
[user:torquise,2024-07-12]↵
[user:VarunGolcha,2024-07-12]↵
[user:shree_swami_samarth,2024-07-12]↵
[user:slayerr_1818,2024-07-12]↵
</spoiler>↵
↵
### Leaked Solution of E:↵
↵
<spoiler summary="E">↵
↵
~~~~~↵
#include <bits/stdc++.h>↵
using namespace std;↵
↵
void run() {↵
int n; cin >> n;↵
↵
vector ans(0, pair(0, 0));↵
↵
string s;↵
for (int a = 1; a <= 10000; a++) {↵
s += to_string(n);↵
for (int b = max(1, int(s.size())-6); b <= min(10000, a100) and b < int(s.size()); b++) {↵
if (to_string(na-b) == s.substr(0, s.size()-b)) {↵
ans.emplace_back(a, b);↵
}↵
}↵
}↵
↵
cout << ans.size() << '\n';↵
for (auto [a, b] : ans) {↵
cout << a << ' ' << b << '\n';↵
}↵
}↵
↵
int main() {↵
cin.tie(0)->sync_with_stdio(0);↵
↵
int t; cin >> t; while (t--) run();↵
} ↵
~~~~~↵
↵
↵
</spoiler>↵
↵
### List of Cheater for E:↵
↵
<spoiler summary="E Cheaters">↵
[user:BugBlue,2024-07-12]↵
[user:hasan1485,2024-07-12]↵
[user:KALiIi24,2024-07-12]↵
[user:thegreat_gordini14,2024-07-12]↵
[user:divyanshubissa88,2024-07-12]↵
[user:muditlodha3,2024-07-12]↵
[user:YuAn.HR,2024-07-12]↵
[user:whu_yx,2024-07-12]↵
[user:akshatchaudhary,2024-07-12]↵
[user:aakash_kalra,2024-07-12]↵
[user:ByteBard16,2024-07-12]↵
[user:wzxaurora,2024-07-12]↵
[user:aloolelopls,2024-07-12]↵
[user:dinskid,2024-07-12]↵
[user:HyperNovaVY,2024-07-12]↵
[user:TLE_lord,2024-07-12]↵
[user:tanush,2024-07-12]↵
[user:_rbr__iiita,2024-07-12]↵
[user:rabi3,2024-07-12]↵
[user:Nitish_Bharat,2024-07-12]↵
</spoiler>↵
↵
Since there are a lot of cheaters this time, are team is still processing and will update this list accordingly.↵
↵
I would like to request [user:MikeMirzayanov,2024-07-12] and the [user:Gornak40,2024-07-12] to take actions on the cheaters as well people who are leaking the solutions.↵
↵
I would also request to take strict action on [user:kyakaregajanke,2024-07-12] who leaked the solutions on Youtube and provided the solutions in a drive link and telegram too.↵
↵
<spoiler summary="Leaked on Youtube">↵
<a href="https://ibb.co/S7Y4P2c"><img src="https://i.ibb.co/zH9Tr1F/pic.png" alt="pic" border="0"></a>↵
[Screenshot link](https://ibb.co/S7Y4P2c)↵
</spoiler>↵
↵
↵
↵
Here is the drive link : [Leaked Solution Drive](https://drive.google.com/drive/folders/1NZDh9PsqOB3tUE2TZECbjbN_Kf2VJ6SO)↵
Anyone with this code has just copied from here .↵
↵
↵
I have would like to thank the entire **Cheat Patrol** team for exposing them.↵
Special thanks to [user:Vladosiya,2024-07-12] for actively helping us in the server and taking actions on convicted cheaters↵
↵
If you are interested in volunteering us in exposing cheaters.↵
You can join our **Cheat Patrol** server : [Cheat Patrol Discord Server](https://discord.com/invite/kKZhfAWKfE)↵