Created
August 12, 2012 04:27
-
-
Save numinit/3329726 to your computer and use it in GitHub Desktop.
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
// nice work, #valvearg2 | |
// ... and great job to The_MAZZTer for figuring it out! | |
// how it works: http://d.pr/i/iDp6 | |
// ruby equivalent: [18, 5, 19, 9, 19, 20, 15, 18].collect{|c| (c + 96).chr}.join | |
#include <iostream> | |
using namespace std; | |
void Q(int val) { | |
printf("%c", val + 'a' - 1); | |
} | |
int main(void) { | |
int Valve = 3; | |
for (int i = 0; i < 5991; i++) | |
Valve++; | |
Q(Valve / 333); | |
Valve += 12345; | |
Q(Valve % 18334); | |
Valve /= 3; | |
Q(Valve - 6094); | |
for (int m = 0; m < 19; m++) | |
Valve += m; | |
int OSW = 4 * 2 + 1; | |
Q(OSW); | |
OSW *= 2; | |
Q(OSW + 1); | |
Q(OSW + 2); | |
int l = 45; | |
Q(l / 3); | |
Valve = 0; | |
int notthree = (l + 9) / 3; | |
Q(notthree); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment