Download Jar. Libraryless. Click here for Pure Java version (123L/2K).
!7 // by https://www.youtube.com/user/degreespwnu // Solution for: https://www.youtube.com/watch?v=EIWbhB4uLVY (Scam School) p { for(int a=1;a<10;a++){ for(int p=1;p<10;p++){ if(!(p==a)){ for(int e=1;e<10;e++){ if(!(e==p || e==a)){ for(int n=0;n<10;n++){ if(!(n==e || n==p || n==a)){ for(int y=0;y<10;y++){ if(!(y==n || y==e || y==p || y==a)){ for(int s=1;s<10;s++){ if(!(s==y || s==n || s==e || s==p || s==a)){ for(int v=0;v<10;v++){ if(!(v==s || v==y || v==n || v==e || v==p || v==a)){ for(int d=0;d<10;d++){ if(!(d==v || d==s || d==y || d==n || d==e || d==p || d==a)){ for(int i=1;i<10;i++){ if(!(i==d || i==v || i==s || i==y || i==n || i==e || i==p || i==a)){ for(int r=0;r<10;r++){ if(!(r==d || r==v || r==s || r==y || r==n || r==e || r==p || r==a)){ int aCalc = a; String pennyString = String.valueOf(p) + String.valueOf(e) + String.valueOf(n) + String.valueOf(n) + String.valueOf(y); int pennyCalc = Integer.parseInt(pennyString); String savedString = String.valueOf(s) + String.valueOf(a) + String.valueOf(v) + String.valueOf(e) + String.valueOf(d); int savedCalc = Integer.parseInt(savedString); String isString = String.valueOf(i) + String.valueOf(s); int isCalc = Integer.parseInt(isString); String earnedString = String.valueOf(e) + String.valueOf(a) + String.valueOf(r) + String.valueOf(n) + String.valueOf(e) + String.valueOf(d); int earnedCalc = Integer.parseInt(earnedString); int earnedGuess = aCalc + pennyCalc + savedCalc + isCalc + aCalc + pennyCalc; if(earnedCalc == earnedGuess){ System.out.println("A solution was found:"); System.out.println(aCalc); System.out.println(pennyCalc); System.out.println(savedCalc); System.out.println(isCalc); System.out.println(aCalc); System.out.println(pennyCalc); System.out.println("_________________"); System.out.println(earnedCalc); } } } } } } } } } } } } } } } } } } } } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010777 |
Snippet name: | A penny earned... (math problem solver) by degreespwnu |
Eternal ID of this version: | #1010777/4 |
Text MD5: | b32204ab798d04dccf28762cfda7e81d |
Transpilation MD5: | fdbe76a16ccce320f6e786f0960a4b8b |
Author: | stefan |
Category: | javax / puzzles |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-02 01:31:13 |
Source code size: | 3175 bytes / 86 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 555 / 1090 |
Version history: | 3 change(s) |
Referenced in: | -