Count to 2,000 - Printable Version +- CC Zone - Chip's Challenge Forum (https://forum.bitbusters.club) +-- Forum: Non-Chip's Challenge (https://forum.bitbusters.club/forum-6.html) +--- Forum: Games and Trivia (https://forum.bitbusters.club/forum-23.html) +--- Thread: Count to 2,000 (/thread-1703.html) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
Count to 2,000 - Gavin - 21-Sep-2018 5 REM display the number 941 10 LET a$ = "9" 20 LET b$ = "4" 30 LET c$ = "1" 40 LET d$ = a$ + b$ + c$ 50 LET number = VAL(d$) 60 PRINT number Count to 2,000 - Gavin - 21-Sep-2018 package arraysstrings; import java.util.Arrays; public class ArraysStrings { public static void main(String[] args) { // Display the number 942 String[] aryString = new String[3]; aryString[0] = "9"; aryString[1] = "4"; aryString[2] = "2"; int i; for (i = 0; i < aryString.length; i++){ System.out.println(aryString); } } } Count to 2,000 - H2O - 21-Sep-2018 liftM2 (*) ((succ (succ 0) +) . (`div` succ (succ 0))) pred (product (((:) =<< sum . (++ [succ (succ 0)])) [succ (succ 0), succ (succ (succ 0))])) Count to 2,000 - random 8 - 21-Sep-2018 #include <stdio.h> int main(void) { printf("944\n"); return 0; } Count to 2,000 - H2O - 21-Sep-2018 foldl1 (-) (ap map (ap ((:) . sum . ap map ((: [succ 1, 1, 1]) . succ . ($ succ 1))) (return . ($ succ 1))) (length . mapM id . replicate (succ 1) . enumFromTo 1)) Count to 2,000 - Gavin - 04-Oct-2018 945++ what language is that H20? Count to 2,000 - The Architect - 04-Oct-2018 947 Quote:3 hours ago, Gavin said: This actually produces the value 945. Quote:3 hours ago, Gavin said: I think it's Haskell, but I'm not sure. Count to 2,000 - H2O - 04-Oct-2018 Which language is used to calculate 943 and 945? Code: > flip runReader language $ asks id Code: pack [label .l -text 948] Count to 2,000 - random 8 - 05-Oct-2018 Count to 2,000 - H2O - 10-Oct-2018 Code: io.write(950) |