This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0//(print("Hello from python") or exit(0)) | |
console.log("Hello from JS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
using ll = long long; | |
using str = string; | |
using pii = pair<int, int>; | |
using vi = vector<int>; | |
#define dbg(v) cout << "Line(" << __LINE__ << ") -> " << #v << " = " << (v) << endl; | |
#define rep(i, a, n) for(int i = a; i < n; i++) | |
#define size(a) (int)a.size() | |
#define len(a) (int)a.length() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define rep(name,start,end) for (int name = start; name < (end); name++) | |
#define IN(type, name) type name; cin >> name | |
#define LOG(v) cerr << "[line " << __LINE__ << "] " << #v << "=" << (v) << "\n" | |
#define YN(v) ((v) ? "YES" : "NO") | |
#define PYN(v) cout << YN(v) << "\n" | |
void solve(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
using ll = long long; | |
using str = string; | |
using pii = pair<int, int>; | |
using vi = vector<int>; | |
#define dbg(v) cout << "Line(" << __LINE__ << ") -> " << #v << " = " << (v) << endl; | |
#define rep(i, a, n) for(int i = a; i < n; i++) | |
#define size(a) (int)a.size() | |
#define len(a) (int)a.length() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define rep(name,start,end) for (int name = start; name < (end); name++) | |
#define IN(type, name) type name; cin >> name | |
#define LOG(v) cerr << "[line " << __LINE__ << "] " << #v << "=" << (v) << "\n" | |
#define YN(v) ((v) ? "YES" : "NO") | |
#define PYN(v) cout << YN(v) << "\n" | |
void solve(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string basis_change(string source, int from, int to) { | |
assert(from >= 2 && from <= 16); | |
assert(to >= 2 && to <= 16); | |
long long num = 0; | |
int power = 0; | |
bool negative = false; | |
for (int i = source.length() - 1; i >= 0; i--) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HACK PARAULOGIC | |
// -- Arnau478 -- | |
// Com utilitzar: | |
// 1. A l'ordinador, prem F12 i ves a la pestanya "Consola". | |
// 2. Enganxa aquest codi al camp de text i prem la tecla Enter/Intro | |
// NOTA: Haurás d'esborrar l'emmagatzematge de la pàgina o esperar al dia següent si vols reiniciar la partida! | |
// Per esborrar l'emmagatzematge de la pàgina pots executar el següent codi de la mateixa forma i després refrescar la pàgina: | |
// localStorage.clear() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* HOW TO USE | |
* | |
* 1. Press Ctrl+Alt+I | |
* 2. Go to "Console" tab | |
* 3. Paste all the code there and press enter | |
* 4. When asked, enter the image URL | |
* | |
* ### IMPORTANT ### | |
* URL must be from discord.com domain or image won't display. |