.. title: HackIM 2013 - Programming 400 WriteUp .. slug: hackim-2013-programming-400-writeup .. date: 2013/03/02 05:08:00 .. tags: CTF, nullcon, HackIM, WriteUps .. link: .. description: WriteUp for Nullcon HackIM CTF Programming 400 **Programming 4 - 400 points** **Description:** interpret and give answer. start reading from left if digit then add the digit. if x then remove it and go back 2 places if y then remove and go front 2 places example : 12y34x56 answer is 14 how : 1 + 2 + 5 + 6 = 14 12y34x5612345678910xy0981235432x4765893x219532y875439664y3x 2345688x754312x2456x7876554x43y324x6778y7643223457789494x98696763y15348798y765341y1878979 :: public class FunkyText { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here String num="12y34x5612345678910xy0981235432x4765893x219532y875439664y3x2345688x754312x2456x7876554x43y324x6778y7643223457789494x98696763y15348798y765341y1878979"; int total=0; int num_length=num.length(); for(int index=0;index