We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6e6cb commit 6832cdcCopy full SHA for 6832cdc
problem40/main.go
@@ -0,0 +1,27 @@
1
+//(Div. 2 - A) - Suborrays
2
+
3
+package main
4
5
+import (
6
+ "bufio"
7
+ "fmt"
8
+ "os"
9
+ "strconv"
10
+)
11
12
+func main() {
13
+ scanner:=bufio.NewScanner(os.Stdin)
14
+ scanner.Split(bufio.ScanWords)
15
+ scanner.Scan()
16
+ t,_:=strconv.Atoi(scanner.Text())
17
18
+ for t>0{
19
20
+ n,_:=strconv.Atoi(scanner.Text())
21
+ for i:=1;i<=n;i++{
22
+ fmt.Printf("%d ",i)
23
+ }
24
+ fmt.Println()
25
+ t--
26
27
+}
0 commit comments