Skip to content

Commit

Permalink
[DH] rev-basic-3 cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
namaek2 committed Jan 6, 2024
1 parent 4f98a12 commit 12c1e72
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/testhere
iwannabetheguy
iwannabetheguy.cpp
14 changes: 1 addition & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
{
"files.associations": {
"ostream": "cpp",
"iostream": "cpp",
"stdexcept": "cpp",
"any": "cpp",
"optional": "cpp",
"variant": "cpp",
"hash_map": "cpp",
"*.tcc": "cpp",
"deque": "cpp",
"list": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp"
"iostream": "cpp"
}
}
16 changes: 16 additions & 0 deletions DreamHack/rev-basic-3.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <iostream>

using namespace std;

int main(void) {
int arr[50] = {0x49, 0x60, 0x67, 0x74, 0x63, 0x67, 0x42, 0x66,
0x80, 0x78, 0x69, 0x69, 0x7b, 0x99, 0x6d, 0x88,
0x68, 0x94, 0x9f, 0x8d, 0x4d, 0xa5, 0x9d, 0x45};

for (int i = 0; i < 24; i++){
int k = (i ^ (arr[i] - 2 * i));
cout << (char)k << " ";
}

return 0;
}

0 comments on commit 12c1e72

Please sign in to comment.