Files
swe-agent--swe-agent/tests/test_data/data_sources/ctf/rev/rock/solution.cpp
T
wehub-resource-sync 4e0f4422d0
Check Markdown links / markdown-link-check (push) Waiting to run
Pytest / test (3.11) (push) Waiting to run
Pytest / test (3.12) (push) Waiting to run
build-docs / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

25 lines
658 B
C++
Executable File

#include <string>
#include <iostream>
using namespace std;
int main(){
string solution = "FLAG23456912365453475897834567";
for(int i =0; i <= solution.length();i++){
cout << i << " " << solution[i] << " " << ((int) solution[i]);
solution[i] = char(((solution[i]-(265%999))^0x10));
cout << " " << solution[i] << " " << ((int) solution[i]) << endl;
}
for(int j =0; j <= solution.length();j++){
cout << j << " " << solution[j] << " " << ((int) solution[j]);
solution[j] = char((solution[j] - 20)^0x50);
cout << " " << solution[j] << " " << ((int) solution[j]) << endl;
}
cout << "FLAG:" << solution << endl;
}