File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ func readArray(scanner *bufio.Scanner) []int {
41
41
listString := strings .Split (scanner .Text (), " " )
42
42
arr := make ([]int , len (listString ))
43
43
for i := 0 ; i < len (listString ); i ++ {
44
- arr [i ], _ = strconv .ParseInt (listString [i ], 10 , 64 )
44
+ arr [i ], _ = strconv .Atoi (listString [i ])
45
45
}
46
46
return arr
47
47
}
Original file line number Diff line number Diff line change 1
1
import java .util .List ;
2
2
import java .util .Arrays ;
3
3
import java .util .ArrayList ;
4
+ import java .util .stream .Collectors ;
4
5
import java .io .BufferedReader ;
5
6
import java .io .IOException ;
6
7
import java .io .InputStreamReader ;
@@ -12,7 +13,7 @@ public class D {
12
13
private static List <Integer > twoSum (List <Integer > arr , int targetSum ) {
13
14
// Ваше решение
14
15
}
15
- public static void main (String [] args ) {
16
+ public static void main (String [] args ) throws IOException {
16
17
try (BufferedReader reader = new BufferedReader (new InputStreamReader (System .in ))) {
17
18
int n = readInt (reader );
18
19
List <Integer > arr = readList (reader );
Original file line number Diff line number Diff line change 1
1
import java .util .List ;
2
2
import java .util .Arrays ;
3
3
import java .util .ArrayList ;
4
+ import java .util .stream .Collectors ;
4
5
import java .io .BufferedReader ;
5
6
import java .io .IOException ;
6
7
import java .io .InputStreamReader ;
@@ -12,7 +13,7 @@ public class E {
12
13
private static List <Integer > twoSum (List <Integer > arr , int targetSum ) {
13
14
// Ваше решение
14
15
}
15
- public static void main (String [] args ) {
16
+ public static void main (String [] args ) throws IOException {
16
17
try (BufferedReader reader = new BufferedReader (new InputStreamReader (System .in ))) {
17
18
int n = readInt (reader );
18
19
List <Integer > arr = readList (reader );
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ function solve() {
29
29
} else {
30
30
process . stdout . write ( `${ ans . join ( ' ' ) } ` ) ;
31
31
}
32
- process . stdout . write ( `${ zip ( a , b ) . join ( ' ' ) } ` ) ;
33
32
}
34
33
35
34
function readInt ( ) {
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ function solve() {
29
29
} else {
30
30
process . stdout . write ( `${ ans . join ( ' ' ) } ` ) ;
31
31
}
32
- process . stdout . write ( `${ zip ( a , b ) . join ( ' ' ) } ` ) ;
33
32
}
34
33
35
34
function readInt ( ) {
You can’t perform that action at this time.
0 commit comments