Search found 4 matches

by error213
Mon May 16, 2011 8:12 am
Forum: Challenges Solved
Topic: Delegates
Replies: 17
Views: 2174

solution in C# static void Main(string[] args) { int Hillary = 0; for (int Barack = 1; Barack <= 2118; Barack++) { if ((int)Math.Sqrt(Barack) == Math.Sqrt(Barack)) { Hillary += Barack; Hillary += Barack; } else Hillary += Barack; } Console.WriteLine(Hillary); }
by error213
Sun May 15, 2011 11:13 pm
Forum: Challenges Solved
Topic: UpCount
Replies: 28
Views: 2530

i ported in C# namespace ConsoleApplication1 { class Program { private long calc(int depth) { if (depth == 0) return 1; long cc = calc(depth - 1); return cc + (depth % 7) + ((((cc ^ depth) % 4) == 0) ? 1 : 0); } static void Main(string[] args) { Program uc = new Program(); Console.WriteLine(uc.calc(...
by error213
Sun Nov 29, 2009 8:28 pm
Forum: Challenges
Topic: Challenge 'File Mystery
Replies: 20
Views: 44953

keyword is extract..think
by error213
Sun Feb 22, 2009 1:38 pm
Forum: Challenges Solved
Topic: Follow the Logic
Replies: 13
Views: 1406

i made an html file i think it's a easiest way to do it <html> <body> <script type="text/javascript"> var x = 2; var y = 5; var z = 3; var a = new Array(6, 5, 4, 9, 3, 7); var v = y * a[y] + z * a[z] - y * x * z + a[y] * a[x] * a[3]; a.reverse; v = v + a[z] + a[y] + 11 * a[1] + a[0] - 1; d...