Skip to content

Commit 2024892

Browse files
committed
Add solution for GCAQQ06
1 parent f3aa3c3 commit 2024892

File tree

1 file changed

+23
-0
lines changed
  • gcaqq06_penguin_coding_4_mod_fashion

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
x := 1
7+
for {
8+
if x%3 == 1 && x%5 == 2 && x%11 == 10 && x%17 == 9 && x%23 == 19 && x%29 == 10 && x%37 == 5 {
9+
break
10+
}
11+
x++
12+
}
13+
14+
y := 1
15+
for {
16+
if y%7 == 1 && y%13 == 1 && y%19 == 10 && y%31 == 23 && y%41 == 21 && y%43 == 20 {
17+
break
18+
}
19+
y++
20+
}
21+
22+
fmt.Println(x, y)
23+
}

0 commit comments

Comments
 (0)