node_ids listlengths 4 1.4k | edge_index listlengths 1 2.22k | text listlengths 4 1.4k | source stringlengths 14 427k |
|---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
2,
13,
17,
17,
30,
40,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\twhile(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = a + b;\n\t\t\tint count = 1;\n\t\t\n\t\t\twhile(c/10!=0){\n\t\... |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
while(stdIn.hasNext()){
int a = stdIn.nextInt();
int b = stdIn.nextInt();
int c = a + b;
int count = 1;
while(c/10!=0){
count++;
c = c/10;
}
System.out.println(count);
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
40,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
9,
13
],
[
13,
14
],
... | [
"class Main\n{\n\tpublic static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\t\n\t\twhile( sc.hasNext() )\n\t\t{\n\t\t\tint a,b;\n\t\t\t\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\t\n\t\t\tint c = a+b;\n\t\t\t\n\t\t\tint d = 0;\n\t\t\twhile( c != 0... | class Main
{
public static void main( String[] args )
{
java.util.Scanner sc = new java.util.Scanner( System.in );
while( sc.hasNext() )
{
int a,b;
a = sc.nextInt();
b = sc.nextInt();
int c = a+b;
int d = 0;
while( c != 0 ){
d++;
c = c/10;
}
System.out.println( d );
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
75,
11
],
[
75,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n \npublic class Main {\n public static void main(String args[] ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s=\"\";\n while(s != null) {\n s ... | import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
public class Main {
public static void main(String args[] ) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s="";
while(s != null) {
s = br.readLine();
if (s == null ){break;}
int a = Integer.parseInt(s.split(" ")[0]);
int b = Integer.parseInt(s.split(" ")[1]);
System.out.println(String.valueOf(a + b).length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint ans = a + b;\n\t\t\tint i = 0;\n\t\t\twhile (ans != 0) {\n\t\t\t\tans /= ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
int a = scan.nextInt();
int b = scan.nextInt();
int ans = a + b;
int i = 0;
while (ans != 0) {
ans /= 10;
i++;
}
System.out.println(i);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
2,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()){\n\t int b=sc.nextInt();\n\t int c=sc.nextInt();\n\t System.out.println(String.valueOf(b+c).length()\n);\n }\n }\n}",
"import java.util.Scanner;",
... | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(sc.hasNextInt()){
int b=sc.nextInt();
int c=sc.nextInt();
System.out.println(String.valueOf(b+c).length()
);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
55,
8
],
[
55,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a,b;\n\t\tint length;\n\t\twhile(sc.hasNext()){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tlength = String.val... | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
int a,b;
int length;
while(sc.hasNext()){
a = sc.nextInt();
b = sc.nextInt();
length = String.valueOf((a+b)).length();
System.out.println(length);;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n \n \n \n while(input.hasNextInt()){\n int x1 =input.nextInt();\n int x2 =input.nextInt();\n int x3 = x1+x2;\n... |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
while(input.hasNextInt()){
int x1 =input.nextInt();
int x2 =input.nextInt();
int x3 = x1+x2;
String s1 = String.valueOf(x3);
System.out.println(s1.length());
}}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t\n\t\twhile(scanner.hasNext()){\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint x =a + b;\n\t\t\tString y = Integer.toString(x);\n\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()){
int a = scanner.nextInt();
int b = scanner.nextInt();
int x =a + b;
String y = Integer.toString(x);
System.out.println(y.length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
4,
18,
13,
2,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count =0;\n\t\t\n\t\twhile(sc.hasNext() && count < 201){\n\t\t\t\n\t\t\t\tString a = sc.nextLine();\n\t String[] array = a.split(\" \");\n\t\t\t\tint x = Intege... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count =0;
while(sc.hasNext() && count < 201){
String a = sc.nextLine();
String[] array = a.split(" ");
int x = Integer.parseInt(array[0]);
int y = Integer.parseInt(array[1]);
int val = x+y;
int valLen = String.valueOf( val ).length();
System.out.println(valLen);
count++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
49,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\twhile ( sc.hasNext() ){\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint s = a + b ;\n\t\tString str = Integer.toString( s );\n\t... | import java.util.Scanner;
public class Main {
static Scanner sc = new java.util.Scanner(System.in);
public static void main(String[] args) {
while ( sc.hasNext() ){
int a = sc.nextInt();
int b = sc.nextInt();
int s = a + b ;
String str = Integer.toString( s );
System.out.println( str.length() );
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
2,
4,
18,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] a){\n Scanner s = new Scanner(System.in);\n\n while(s.hasNext()){\n System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"j... | import java.util.Scanner;
class Main{
public static void main(String[] a){
Scanner s = new Scanner(System.in);
while(s.hasNext()){
System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
41,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.lang.*;\nimport java.lang.Exception;\nimport java.lang.Integer;\nimport java.lang.Math;\nimport java.lang.String;\nimport java.lang.System;\nimport java.util.StringTokenizer;\n\n\nclass Main {\n public st... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.lang.*;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.Math;
import java.lang.String;
import java.lang.System;
import java.util.StringTokenizer;
class Main {
public static void main(String[] a) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
try {
String s = r.readLine();
StringTokenizer st;
while(s != null) {
st = new StringTokenizer(s);
int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
System.out.println((int)Math.log10(sum) + 1);
s = r.readLine();
}
} catch (Exception e) {
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
38,
5,
13,
30,
0,
13,
17,
30,
0,
13,
4,
18,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
81,
11
],
[
81,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class Main {\n\n public static void main( String[] args ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String n = br.readLine();\n while (n != null)... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main( String[] args ) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String n = br.readLine();
while (n != null) {
String[] sp = n.split(" ");
int result = 0;
for (String str : sp) {
try {
result += Integer.parseInt(str);
} catch (NumberFormatException ex) {
result = 0;
}
}
if (result == 0) {
break;
}
System.out.println(String.valueOf(result).length());
n = br.readLine();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
4,
18,
13,
17,
4,
18,
13,
2,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
1,
40,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n ArrayList<Integer> list = new ArrayList<Integer>();\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n list.add(String.format(\"%d\",Math.abs(sc.nextInt() + sc.nextInt())).length());\n ... | import java.util.*;
class Main{
public static void main(String[] args){
ArrayList<Integer> list = new ArrayList<Integer>();
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
}
for(int i = 0,size = list.size();i < size;i++){
System.out.println(list.get(i));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
2,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint a, b;\n\t\tString sum;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tString num[] = scan.nextLine().split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parse... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int a, b;
String sum;
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
String num[] = scan.nextLine().split(" ", 0);
a = Integer.parseInt(num[0]);
b = Integer.parseInt(num[1]);
sum = String.valueOf(a+b);
System.out.println(sum.length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
2,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n \n while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\... | import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String str;
String[] arr;
while(sc.hasNext()){
str = sc.nextLine();
arr = str.split(" ");
int a = Integer.parseInt(arr[0]);
int b = Integer.parseInt(arr[1]);
System.out.println((int)Math.log10(a+b)+1);
}
}//main
}//class |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\tstatic List<Integer> list = new ArrayList<Integer>();\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tint sum = (scan.nextInt() + scan.nextI... | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class Main {
static List<Integer> list = new ArrayList<Integer>();
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
int sum = (scan.nextInt() + scan.nextInt());
System.out.println(String.valueOf(sum).length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
38,
5,
13,
30,
4,
18,
13,
30,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
92,
11
],
[
92,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\ttry {\n\t\t\twhile ((str = br.readLine()) != nul... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
try {
while ((str = br.readLine()) != null) {
String[] num = str.split(" ");
int a = Integer.parseInt(num[0]);
int b = Integer.parseInt(num[1]);
if (0 <= a && a <= 1000000 && 0 <= b && b <= 1000000) {
System.out.println(Integer.toString(a + b).length());
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
13,
17,
37,
20,
41,
13,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
41,
13,
2,
17,
13,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
... | [
"import java.io.*;\nclass Main{\n public static void main(String[] args) {\n try{\n BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n while(true){\n String[] str = br.readLine().split(\"\\\\s\");\n if(str == null) throw new Exception();\n int a =... | import java.io.*;
class Main{
public static void main(String[] args) {
try{
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
while(true){
String[] str = br.readLine().split("\\s");
if(str == null) throw new Exception();
int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
String b = "" + a;
System.out.println(b.length());
}
}catch(Exception e){}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
38,
5,
13,
30,
3,
30,
41,
13,
4,
18,
13,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
106,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
]... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n//public class Problem0002_DigitNumber {\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString line;\n\t\t\twhile((li... | import java.io.BufferedReader;
import java.io.InputStreamReader;
//public class Problem0002_DigitNumber {
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String line;
while((line = reader.readLine()) != null) {
try {
String[] data = line.split(" ");
int[] numbers = new int[2];
for(int i = 0; i < 2; i++) {
numbers[i] = Integer.parseInt(data[i]);
}
int sum = numbers[0] + numbers[1];
int result = 0;
while(sum > 0) {
sum = sum / 10;
result++;
}
System.out.println(result);
} catch(NumberFormatException e) {
break;
}
}
} catch(Exception e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[]args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\tint sum = a+b;\n\t\tint valLen = String.valueOf(sum).length();\n\t\tSystem.out.println(val... | import java.util.Scanner;
public class Main{
public static void main(String[]args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
int a = sc.nextInt();
int b = sc.nextInt();
int sum = a+b;
int valLen = String.valueOf(sum).length();
System.out.println(valLen);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
18,
13,
17... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
74,
11
],
[
74,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ\n\t\tBufferedReader d=... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ
BufferedReader d= new BufferedReader(new InputStreamReader(System.in));
String temp;
while((temp =d.readLine())!= null){
String array[]=temp.split(" ");
int a=Integer.valueOf(array[0]).intValue(),b=Integer.valueOf(array[1]).intValue();
String sum =String.valueOf(a+b);
System.out.println(sum.length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint n= sc.nextInt();\n\t\t\tint o= sc.nextInt();\n\t\t\tint wa = n+o;\n\t\t\tSystem.out.println(sum(wa));\n\t\t\t}\n\t\tsc.close();\n\n\n\n\t}\n\tstatic int sum(i... | import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int n= sc.nextInt();
int o= sc.nextInt();
int wa = n+o;
System.out.println(sum(wa));
}
sc.close();
}
static int sum(int n){
int i=1;
int t=10;
while(n>=t){
t=t*10;
i++;
}
return i;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
41,
13,
42,
17,
30,
38,
5,
13,
30,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
4,
18,
13,
0,
13,
4,
18,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = r.readLine();\n\t\tStringTokenizer st = new StringTokenizer(s,\" \");\n\t\tint a,b;\n\t\twhile(true){\n\t... | import java.io.*;
import java.util.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s = r.readLine();
StringTokenizer st = new StringTokenizer(s," ");
int a,b;
while(true){
try {
a = Integer.parseInt(st.nextToken().toString());
b = Integer.parseInt(st.nextToken().toString());
a+=b;
for(b=0;a!=0;a=a/10) {
b++;
}
System.out.println(b);
s = r.readLine();
if (s==null) break;
st = new StringTokenizer(s," ");
} catch (NoSuchElementException e) {
System.exit(0);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
42,
2,
17,
0,
13,
4,
18,
13,
30,
41,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
2,
4,
18,
13,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
66,
8
],
[
66,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile (null != (str = in.readLine())) {\n\t\t\t\tString[] sar = str.split(\" \");\n\t\t\t\t... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String str;
while (null != (str = in.readLine())) {
String[] sar = str.split(" ");
System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());
}
} catch (Exception e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
71,
11
],
[
71,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = null;\n\n\t\twhile((str = br.readLi... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
while((str = br.readLine()) != null) {
String[] num = str.split(" ");
int a = Integer.parseInt(num[0]);
int b = Integer.parseInt(num[1]);
int digitnum = String.valueOf(a + b).length();
System.out.println(digitnum);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] arg) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a, b;\n\t\tString line, str;\n\... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] arg) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a, b;
String line, str;
String[] splitedLine;
while ((line = br.readLine()) != null) {
splitedLine = line.split(" ");
a = Integer.parseInt(splitedLine[0]);
b = Integer.parseInt(splitedLine[1]);
str = String.valueOf(a + b);
System.out.println(str.length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
0,
13,
13,
42,
2,
13,
17,
30,
40,
13,
0,
13,
17... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.*;\nclass Main{\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tMain app = new Main();\n\t\twhile(sc.hasNext()){\n\t\tSystem.out.println(app.length(sc.nextInt(),sc.nextInt()));\n\t\t}\n\t}\n\t\n\t\n\t\n\tint length(int a,int b){\n\t\tint ans = 1;\n\... | import java.util.*;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Main app = new Main();
while(sc.hasNext()){
System.out.println(app.length(sc.nextInt(),sc.nextInt()));
}
}
int length(int a,int b){
int ans = 1;
a += b;
while(a >= 10){
ans ++;
a /=10;
}
return ans;
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
11,
1,
30,
30,
14,
40,
4,
18,
13,
3,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
10,
6,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
54,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tvoid run(){\n\t\tfor(;;){\n\t\t\tif(!sc.hasNextInt()) break;\n\t\t\tint a = sc.nextInt() + sc.nextInt();\n\t\t\tSystem.out.println(1+(int)Math.log10(a));\n\t\t}\n\t\t\n\t}\n\tpublic static void main(String[] args){\n\t\tMai... | import java.util.Scanner;
public class Main {
Scanner sc = new Scanner(System.in);
void run(){
for(;;){
if(!sc.hasNextInt()) break;
int a = sc.nextInt() + sc.nextInt();
System.out.println(1+(int)Math.log10(a));
}
}
public static void main(String[] args){
Main m = new Main();
m.run();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = a + b;\n\t\t\tSystem.out.println(Integer.toString(c).length());\n\t\t}\n\t}\n\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = a + b;
System.out.println(Integer.toString(c).length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
42,
4,
18,
13,
30,
0,
18,
13,
13,
2,
4,
18,
13,
4,
18,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
42,
2,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] sum = new int[200];\n\t\tint i=0;\n\t\twhile(sc.hasNext()){\n\t\t\tsum[i] = sc.nextInt() + sc.nextInt();\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tfor(int j=0;j<i;j++){\n\t\t\tint k... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] sum = new int[200];
int i=0;
while(sc.hasNext()){
sum[i] = sc.nextInt() + sc.nextInt();
i++;
}
for(int j=0;j<i;j++){
int k=0;
while(sum[j]!=0){
k++;
sum[j] /= 10;
}
System.out.println(k);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
13,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.io.*;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n\t \tScanner in = new Scanner(System.in);\n\t \t\n\t \twhile(in.hasNextInt()) {\n\t \t\tint a = in.nextInt();\n\t ... | import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
while(in.hasNextInt()) {
int a = in.nextInt();
int b = in.nextInt();
a += b;
int numDigit = String.valueOf(a).length();
System.out.println(numDigit);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main {\n public static void main (String args[]) {\n\tScanner scan = new Scanner(System.in);\n\tint sum = 0;\n\n\twhile (scan.hasNext()) {\n\t sum = scan.nextInt() + scan.nextInt();\n\t System.out.println((sum+\"\").length());\n\t}\n }\n}",
"import java.util.Scanner... | import java.util.Scanner;
class Main {
public static void main (String args[]) {
Scanner scan = new Scanner(System.in);
int sum = 0;
while (scan.hasNext()) {
sum = scan.nextInt() + scan.nextInt();
System.out.println((sum+"").length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
4,
18,
13,
30,
0,
13,
17,
41,
13,
2,
4,
18,
13,
4,
18,
13,
42,
2,
13,
17,
30,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
... | [
"import java.util.Scanner;\n\nclass Main {\t\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count;\n\t\t\n\t\twhile(scan.hasNextInt()){\n\t\t\tcount = 1;\n\t\t\tint addNum = scan.nextInt() + scan.nextInt();\n\t\t\twhile(addNum>=10){\n\t\t\t\tcount++;\n\t\t\t\taddNum/... | import java.util.Scanner;
class Main {
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int count;
while(scan.hasNextInt()){
count = 1;
int addNum = scan.nextInt() + scan.nextInt();
while(addNum>=10){
count++;
addNum/=10;
}
System.out.println(count);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
2,
4,
18,
13,
18,
13,
17... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
72,
8
],
[
72,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] argv) throws IOException {\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n while(true) {\n String s = in.readLine();\n if (s == null... |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] argv) throws IOException {
//*
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
while(true) {
String s = in.readLine();
if (s == null) {
break;
}
f(s);
}
//*/
}
public static void f(String s) {
String[] sp = s.split(" ");
String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
System.out.println(ans.length());
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
2,
13,
13,
13,
30,
0,
13,
2,
13,
17,
40,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
... | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\twhile(sc.hasNextInt()){\n\t\t\t\tint a=Integer.parseInt(sc.next());\n\t\t\t\tint b=Integer.parseInt(sc.next());\n\t\t\t\tint digit = 1;\n\t\t\t\tint n=0;\n\t\t\t\twhile((a+b)>=... | import java.util.Scanner;
class Main {
public static void main(String[] args){
try(Scanner sc = new Scanner(System.in)){
while(sc.hasNextInt()){
int a=Integer.parseInt(sc.next());
int b=Integer.parseInt(sc.next());
int digit = 1;
int n=0;
while((a+b)>=digit){
digit=digit*10;
n++;
}
System.out.println(n);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
100,
11
],
[
100,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\t// main????????????\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tfor(; ;){\n\t\t\tString onel... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
// main????????????
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
for(; ;){
String oneline = br.readLine();
if(oneline == null){
break;
}
String[] line = oneline.split(" ");
int data1 = Integer.parseInt(line[0]);
int data2 = Integer.parseInt(line[1]);
int digit = digitChk(data1, data2);
System.out.println(digit);
}
}
private static int digitChk(int a, int b){
int sum = a+b;
int digit = 0; // digit
for(; sum>0; digit++){
sum /= 10;
}
return (digit);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\twhile (str != null) {\n\t\t\tString[] arrays = str.split(\"\\\\s\", 0);\n\t\t\tint num = Integer.pars... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
while (str != null) {
String[] arrays = str.split("\\s", 0);
int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
System.out.println(Integer.toString(num).length());
str = br.readLine();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
38,
5,
13,
30,
30,
42,
2,
17,
0,
13,
4,
18,
13,
30,
41,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
2,
4,
18,
13,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\n\nclass Main{\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n try{\n while(null != (line = br.readLine()))\n {\n ... | import java.util.*;
import java.io.*;
import java.math.*;
class Main{
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
try{
while(null != (line = br.readLine()))
{
String[] strArr = line.split(" ");
System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
}
}
catch(Exception e){
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n while (scan.hasNextInt()) {\n int a = scan.nextInt();\n int b = scan.nextInt();\n int sum = a+b;\n int length = (int) (Mat... | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while (scan.hasNextInt()) {
int a = scan.nextInt();
int b = scan.nextInt();
int sum = a+b;
int length = (int) (Math.log10(sum) + 1);
System.out.println(length);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
42,
2,
2,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
List<Integer> list = new ArrayList<Integer>();
String s;
while ((s = br.readLine()) != null && list.size() <= 200) {
String[] num = s.split(" ");
if (0 <= Integer.parseInt(num[0])
&& Integer.parseInt(num[1]) <= 1000000) {
int sum = Integer.parseInt(num[0])
+ Integer.parseInt(num[1]);
list.add(Integer.toString(sum).length());
}else {
break;
}
}
for (int keta : list) {
System.out.println(keta);
}
} finally {
br.close();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
2,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
64,
8
],
[
64,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s;\n\t\twhile ((s = br.readLine()) != null) {\n\t\t\tString[] lc = s.split(\" \");\n\t\t\tint... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s;
while ((s = br.readLine()) != null) {
String[] lc = s.split(" ");
int a = Integer.parseInt(lc[0]);
int b = Integer.parseInt(lc[1]);
System.out.println((int)Math.log10(a+b)+1);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
13,
4,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tString[] data;\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\n\t\twhile(scanner.hasNext()) {\n\t\t\tdata = scanner.nextLine().split(\" \");\n\t\t\tint dataInt = Integer.parseInt(data[0]) + Int... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String[] data;
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()) {
data = scanner.nextLine().split(" ");
int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
System.out.println(String.valueOf(dataInt).length());
}
scanner.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
4,
18,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n String[] data;\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n data = sc.nextLine().split(\" \");\n int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);\n System.out.println(\... | import java.util.Scanner;
class Main{
public static void main(String[] args){
String[] data;
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
data = sc.nextLine().split(" ");
int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
System.out.println("" + Integer.toString(digit).length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
2,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args){\n int a,b;\n Scanner scanner = new Scanner(System.in);\n while(scanner.hasNext()){\n a = scanner.nextInt();\n b = scanner.nextInt();\n System.out.println((String.valueOf(a+b).le... | import java.util.Scanner;
public class Main {
public static void main(String[] args){
int a,b;
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()){
a = scanner.nextInt();
b = scanner.nextInt();
System.out.println((String.valueOf(a+b).length()));
}
scanner.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
17,
42,
2,
2,
13,
17,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
17,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
136,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n public static void main(String[] a) throws IOException{\n\n \tString strLine =\"\";\n \tBufferedReader stdReader =\n new BufferedReader(new InputSt... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] a) throws IOException{
String strLine ="";
BufferedReader stdReader =
new BufferedReader(new InputStreamReader(System.in));
String[] inputStr = new String[2];
Integer[] keta = new Integer[200];
int i = 0;
while ( i < 200 && ((strLine = stdReader.readLine()) != null) ){
inputStr = strLine.split(" ",0);
int temp1 = Integer.parseInt(inputStr[0]);
int temp2 = Integer.parseInt(inputStr[1]);
keta[i] = caulKeta(temp1 + temp2);
i++;
}
for(int c = 0; c < i; c++){
System.out.println(keta[c]);
}
}
public static int caulKeta(int suuji){
int keta = 1;
for(int i = 10; suuji/i !=0; i =i*10 ){
keta ++;
}
return keta;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tint c = a + b;\n\n\t\t\tint l = 0;\n\n\t\t\twhile (c != 0) {\n\t\t\t\t++l;\n\t\t\t\tc /= ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = a + b;
int l = 0;
while (c != 0) {
++l;
c /= 10;
}
System.out.println(l);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
17,
30,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
74,
8
],
[
74,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\npublic class Main{\n public static void main(String args[]){\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=null;\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n int i=Integer.par... | import java.io.*;
import java.util.*;
public class Main{
public static void main(String args[]){
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
try{
String str=null;
while((str=br.readLine())!=null){
StringTokenizer st=new StringTokenizer(str);
int i=Integer.parseInt(st.nextToken());
int j=Integer.parseInt(st.nextToken());
System.out.println(String.valueOf(i+j).length());
}
br.close();
}catch(Exception ex){
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
40,
5
],
[
40,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n while(s.hasNext()){\n int a = s.nextInt()+s.nextInt();\n System.out.println(Integer.toString(a).length()); \n }\n }\n}",
"impo... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
while(s.hasNext()){
int a = s.nextInt()+s.nextInt();
System.out.println(Integer.toString(a).length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
63,
8
],
[
63,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\npublic class Main {\n\n\tpublic static void main(String []args){\n\n\t\tScanner sc=new Scanner(System.in);\n\n\t\twhile(sc.hasNext()){\n\t\t\tString[] line=sc.nextLine().split(\" \");\n\n\t\t\tint a=Integer.parseInt(line[0]);\n\t\t\tint b=Integer.parseInt(line[1]);\n\n\t\t\t... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String []args){
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
String[] line=sc.nextLine().split(" ");
int a=Integer.parseInt(line[0]);
int b=Integer.parseInt(line[1]);
int sum=a+b;
System.out.println(String.valueOf(sum).length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t//?????????????????????\n\t Scanner scan = new Scanner(System.in);\n\n while(scan.hasNext()) {\n \t String num1 = scan.next();\n\t \ti... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
//?????????????????????
Scanner scan = new Scanner(System.in);
while(scan.hasNext()) {
String num1 = scan.next();
int int1 = Integer.parseInt(num1);
String num2 = scan.next();
int int2 = Integer.parseInt(num2);
int kei = int1 + int2;
int keilen = String.valueOf(kei).length();
System.out.println(keilen);
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(sc.hasNext()){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int ab = a + b;\n\n String st = ab +\"\";\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int a = sc.nextInt();
int b = sc.nextInt();
int ab = a + b;
String st = ab +"";
System.out.println(st.length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
87,
11
],
[
87,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n while (input.ready()) {\n String[] dataset = i... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
try {
while (input.ready()) {
String[] dataset = input.readLine().split(" ");
int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
System.out.println(countDigitNumber(sum));
}
} catch (IOException e) {
e.printStackTrace();
}
}
public static int countDigitNumber(int number) {
int digitNumber = 1;
while (number >= 10) {
digitNumber++;
number = number / 10;
}
return digitNumber;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n Integer sum = sc.nextInt() + sc.nextInt();\n System.out.println(sum.toString().length());\n }\n }\n}",
"im... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
Integer sum = sc.nextInt() + sc.nextInt();
System.out.println(sum.toString().length());
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
4,
18,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
23,
... | [
[
0,
1
],
[
106,
2
],
[
106,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],... | [
"public class Main{\n public void run(java.io.InputStream in,java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n\n int a, b, i, j, dig;\n for(;sc.hasNextInt();){\n/*Input*/\n a = sc.nextInt();\n b = sc.nextInt();\n\n/*answer*/\n dig = caldig(a + b);\n System... | public class Main{
public void run(java.io.InputStream in,java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
int a, b, i, j, dig;
for(;sc.hasNextInt();){
/*Input*/
a = sc.nextInt();
b = sc.nextInt();
/*answer*/
dig = caldig(a + b);
System.out.println(dig);
}
sc.close();
}
public static void main(String[] args){
(new Main()).run(System.in,System.out);
}
private static int caldig(int n){
int i;
for(i = 1;i < 10;i++){
if(n / 10 == 0)return i;
n = n / 10;
}
return 0;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.*;\npublic class Main {\n public static void main (String[] args) {\n Scanner inp = new Scanner (System.in);\n while(inp.hasNext()){\n int num_1 = inp.nextInt();\n int num_2 = inp.nextInt();\n int sum = num_1+num_2;\n int digit = (int)(M... | import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner inp = new Scanner (System.in);
while(inp.hasNext()){
int num_1 = inp.nextInt();
int num_2 = inp.nextInt();
int sum = num_1+num_2;
int digit = (int)(Math.log10(sum)+1);;
System.out.println(digit);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
29,
30,
41,
13,
20,
41,
13,
17,
42,
40,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input =\"\... | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input ="";
do{
input = br.readLine();
String[] inputs = input.split(" ");
int num1 = Integer.parseInt(inputs[0]);
int num2 = Integer.parseInt(inputs[1]);
System.out.println(getDigit(num1 + num2));
}while(!input.equals(""));
}
catch(Exception e){
return;
}
}
private static int getDigit(int num){
String numStr = Integer.toString(num);
return numStr.length();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.StringTokenizer;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString buf;\n\n\t\ttry {\n\t\t\twhile ((buf = br.readLine())!=null) {\n\t\t\t\tStrin... | import java.io.*;
import java.util.StringTokenizer;
class Main {
public static void main(String args[]) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String buf;
try {
while ((buf = br.readLine())!=null) {
StringTokenizer st = new StringTokenizer(buf);
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
String s = Integer.toString(a+b);
System.out.println(s.length());
}
} catch (Exception e) {
System.out.println("Exception!");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
17,
30,
41,
13,
20,
4,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
111,
14
],
... | [
"import static java.lang.System.out;\nimport static java.lang.Integer.parseInt;\nimport java.io.File;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n new Main().digit();\n }\n\n public void digit() {\n try (Scanner scan = new Scanner(System.in)... | import static java.lang.System.out;
import static java.lang.Integer.parseInt;
import java.io.File;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
new Main().digit();
}
public void digit() {
try (Scanner scan = new Scanner(System.in)) {
scanDigit(scan);
} catch (Exception e) {
System.exit(0);
}
}
public void digit(String inDataPath) {
try (Scanner scan = new Scanner(new File(inDataPath))) {
scanDigit(scan);
} catch (Exception e) {
e.printStackTrace();
}
}
public void scanDigit(Scanner scan) throws Exception {
String inData;
while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
String[] inDataList = inData.split(" ");
int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
out.println(String.valueOf(sum).length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
2,
13,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n while((str = br.readLine()) != null){\n String[] str2 = str.split(\" \");\n ... | import java.io.*;
public class Main{
public static void main(String[]args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
while((str = br.readLine()) != null){
String[] str2 = str.split(" ");
int a = Integer.parseInt(str2[0]);
int b = Integer.parseInt(str2[1]);
int digits = Integer.toString(a + b).length();
System.out.println(digits);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
2,
13,
17,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n int x,i;\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()) {\n x = sc.nextInt();\n x +=sc.nextInt();\n for (i = 1; x / 10 > 0; i++) {\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args){
int x,i;
Scanner sc = new Scanner(System.in);
while(sc.hasNextInt()) {
x = sc.nextInt();
x +=sc.nextInt();
for (i = 1; x / 10 > 0; i++) {
x = x / 10;
}
System.out.println(i);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
40,
5
],
[
40,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\twhile(s.hasNext()) {\n\t int sum = s.nextInt() + s.nextInt();\n\t System.out.println(String.valueOf(sum).length());\n\t}\n }\n}",
"import java.util.*;",
"util.*",
"java"... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
while(s.hasNext()) {
int sum = s.nextInt() + s.nextInt();
System.out.println(String.valueOf(sum).length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
4,
18,
13,
17,
3,
41,
13,
4,
18,
13,
17,
4,
18,
13,
20... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
140,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<int[]> dataLis... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] a) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
ArrayList<int[]> dataList = new ArrayList<int[]>();
String str;
int j=0;
while ((str = br.readLine()) != null) {
if(str.length()==0)break;
String[] strBuf = str.split(" ");
dataList.add(new int[2]);
try {
((int[]) dataList.get(j))[0] = Integer.parseInt(strBuf[0]);
((int[]) dataList.get(j))[1] = Integer.parseInt(strBuf[1]);
} catch (NumberFormatException nfex) {
break;
}
j++;
str = null;
}
for (int i = 0; i < dataList.size(); i++) {
int sum = ((int[]) dataList.get(i))[0]
+ ((int[]) dataList.get(i))[1];
System.out.println((int) (Math.log10(sum) + 1));
}
br.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
75,
11
],
[
75,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\n\npublic class Main\n{\n\tpublic static void main(String[] args) throws Exception\n\t{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\twhile ((line = in.read... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main
{
public static void main(String[] args) throws Exception
{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
while ((line = in.readLine()) != null)
{
StringTokenizer st = new StringTokenizer(line);
int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
int c = a+b;
int cnt = 0;
while (c > 0)
{
cnt++;
c/=10;
}
System.out.println(cnt);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
30,
0,
13,
4,
18,
13,
30,
3,
0,
13,
2,
13,
13,
42,
2,
13,
17,
30,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
... | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, sum;\n\t\tint digit = 1;\n\t\twhile(in.hasNextInt()){\n\t\t\ta = in.nextInt();\n\t\t\tif(in.hasNextInt()){\n\t\t\t\tb = in.nextInt();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n... | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int a, b, sum;
int digit = 1;
while(in.hasNextInt()){
a = in.nextInt();
if(in.hasNextInt()){
b = in.nextInt();
}else{
break;
}
sum = a+b;
while(sum>=10){
sum /= 10;
digit++;
}
System.out.println(digit);
digit = 1;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
80,
11
],
[
80,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLin... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main (String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
while ((line = br.readLine()) != null) {
String[] numbers = line.split(" ");
int sum = 0;
int a = Integer.parseInt(numbers[0]);
int b = Integer.parseInt(numbers[1]);
sum = a + b;
int ans = 1;
while((sum /= 10) > 0){
ans++;
}
System.out.println(ans);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
38,
5,
13,
30,
30,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
78,
11
],
[
78,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[] top3 = new int[3];\n String line;\n try... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] top3 = new int[3];
String line;
try {
while((line = br.readLine()) != null){
String[] numbers = line.trim().split(" ");
int a = Integer.parseInt(numbers[0]);
int b = Integer.parseInt(numbers[1]);
System.out.println(Integer.toString(a+b).length());
}
} catch (IOException e) {
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
17,
41,
13,
4,
13,
18,
13,
17,
41,
13,
4,
13,
18,
13,
17,
14,
2,
2,
2,
2,
17,
13,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
83,
8
],
[
83,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport static java.lang.Integer.parseInt;\n\npublic class Main {\n \n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str;\n while((str = br.readLine())!=null){\n ... | import java.io.*;
import static java.lang.Integer.parseInt;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
while((str = br.readLine())!=null){
String[] num = str.split(" ",0);
int x = parseInt(num[0]);
int y = parseInt(num[1]);
if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
int z = x+y;
System.out.println(Integer.toString(z).length());
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
2,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint f_num,s_num;\n\t\twhile(sc.hasNextInt()){\n\t\t\tf_num = sc.nextInt();\n\t\t\ts_num =sc.nextInt();\n\t\t\tSystem.out.println(String.valueOf(f_num + s_num).length());\n\t\t}\... | import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int f_num,s_num;
while(sc.hasNextInt()){
f_num = sc.nextInt();
s_num =sc.nextInt();
System.out.println(String.valueOf(f_num + s_num).length());
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
20,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
4,
18,
13,
13,
11,
1,
41,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
117,
11
],
[
117,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.*;\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tnew Main();\n\t}\n\n\tpublic Main(){\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tList<String> lines = new ArrayList<String>();\n\t\t... | import java.io.*;
import java.util.List;
import java.util.ArrayList;
public class Main{
public static void main(String args[]){
new Main();
}
public Main(){
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
List<String> lines = new ArrayList<String>();
try{
String line;
while((line = in.readLine()) != null){
lines.add(line);
}
}catch(IOException err){
err.printStackTrace();
}
for(int i=0; i<lines.size(); i++){
String[] nums = lines.get(i).split(" ");
int a = Integer.parseInt(nums[0]);
int b = Integer.parseInt(nums[1]);
int num = a + b;
int digit = 0;
while(num != 0){
num = num / 10;
digit++;
}
System.out.println(digit);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
0,
13,
20,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\nclass Main\n{\n\tpublic static void main(String[] args){\n\t\tjava.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tStringTokenizer st;\n\n\t\ttry{\n\t\t\t... | import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
class Main
{
public static void main(String[] args){
java.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in));
String line;
StringTokenizer st;
try{
line = br.readLine();
while(line != null){
st = new StringTokenizer(line);
int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
System.out.println((int)Math.log10(s) + 1);
line = br.readLine();
}
}catch(IOException e){
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\n \n\nclass Main\n{\n\tpublic static void main(String args[])throws IOException\n\t{\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line=\"\";\n\t\twhile((line=d.readLine())!=null)\n\t\t{\n\t\t\tString[] str = li... | import java.util.*;
import java.io.*;
import java.math.*;
class Main
{
public static void main(String args[])throws IOException
{
BufferedReader d=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=d.readLine())!=null)
{
String[] str = line.split(" ");
int a=Integer.parseInt(str[0]);
int b=Integer.parseInt(str[1]);
int sum=a+b;
int count=1;
while(sum>=10)
{
count++;
sum/=10;
}
System.out.println(count);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
41,
13,
20,
17,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
41,
13,
17,
42,
2,
18,
13,
13,
17,
30,
40,
13,
0,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
139,
5
],
[
139,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],... | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] args){\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\n \ttry{\n \t\tint keta;\n\t \tdouble num[] = new double[2];\n \t \tString str[] = new String[200];\n\n \t\tstr[0] = br.read... | import java.io.*;
public class Main{
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try{
int keta;
double num[] = new double[2];
String str[] = new String[200];
str[0] = br.readLine();
int i = 0;
while(str[i] != null){
i++;
str[i] = br.readLine();
}
br.close();
for (int j=0;j<i;j++){
String str2[] = str[j].split(" ",0);
num[0] = Double.parseDouble(str2[0]);
num[1] = Double.parseDouble(str2[1]);
keta = (int)Math.log10(num[0]+num[1]);
System.out.println(keta+1);
if(num[0]+num[1]==0){
break;
}
}
}catch(IOException e){
System.out.println("fail.");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(in.hasNext()){\n int a, b;\n a = in.nextInt();\n b = in.nextInt();\n String ret = Integer.toString(a+b);\n System... | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
while(in.hasNext()){
int a, b;
a = in.nextInt();
b = in.nextInt();
String ret = Integer.toString(a+b);
System.out.println(ret.length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
42,
4,
18,
13,
30,
4,
18,
18,
13,
13,
4,
18,
2,
2,
4,
18,
13,
4,
18,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
36,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],... | [
"import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n while(scn.hasNextInt()) {\n System.out.println(\n (scn.nextInt() + scn.nextInt() + \"\").length()\n );\n ... | import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
while(scn.hasNextInt()) {
System.out.println(
(scn.nextInt() + scn.nextInt() + "").length()
);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
42,
4,
18,
13,
30,
0,
13,
20,
17,
41,
13,
4,
18,
4,
18,
13,
17,
0,
18,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
13,
17,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner sc = new Scanner(Syst... | /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int i = 0;
int arr[];
while( sc.hasNext() ){
arr = new int[2];
String line[] = sc.nextLine().split(" ");
arr[0] = Integer.parseInt(line[0]);
arr[1] = Integer.parseInt(line[1]);
System.out.println(String.valueOf(arr[0]+arr[1]).length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
77,
11
],
[
77,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tSt... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws NumberFormatException,
IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));
StringBuilder builder = new StringBuilder();
String s;
while(( s = reader.readLine())!=null){
String[] line = s.split(" ");
int a = Integer.parseInt(line[0]);
int b = Integer.parseInt(line[1]);
builder.append(String.valueOf(a+b).length()).append('\n');
}
System.out.print(builder);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = a + b;\n\t\t\tString d = String.valueOf(c);\n\t\t\tint len = d.length();\n\t... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int a = scan.nextInt();
int b = scan.nextInt();
int c = a + b;
String d = String.valueOf(c);
int len = d.length();
System.out.println(len);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
11,
1,
4,
18,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
2,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint a,b;\n\t\tfor(;scanner.hasNextInt();){\n\t\t\ta=scanner.nextInt();b=scanner.nextInt();\n\t\t\tSystem.out.println((int)Math.floor(Math.log10(a+b)+1));\n\t\t}\n\t}\n\n}",
"impo... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int a,b;
for(;scanner.hasNextInt();){
a=scanner.nextInt();b=scanner.nextInt();
System.out.println((int)Math.floor(Math.log10(a+b)+1));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
2,
0,
13,
4,
18,
13,
17,
2,
13,
17,
30,
41,
13,
4,
18,
13,
17,
17,
41,
13,
4,
13,
18,
13,
17,
41,
13,
4,
13,
18,
13,
17,
14... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
92,
8
],
[
92,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport static java.lang.Integer.parseInt;\n\npublic class Main {\n \n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str;\n int i = 0;\n while((str = br.re... | import java.io.*;
import static java.lang.Integer.parseInt;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int i = 0;
while((str = br.readLine())!=null&&i<200){
String[] num = str.split(" ",0);
int x = parseInt(num[0]);
int y = parseInt(num[1]);
if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
int z = x+y;
System.out.println(Integer.toString(z).length());
}
i++;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
42,
2,
2,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
79,
8
],
[
79,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n ... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line;
while ((line = br.readLine()) != null&&line.length()!=0) {
String[] str=line.split(" ");
int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
int i=0;
while(sum>0){
sum=sum/10;
i++;
}
System.out.println(i);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
11,
1,
0,
13,
17,
2,
17,
13,
1,
40,
13,
30,
30,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] a) {\n\t\tScanner s=new Scanner(System.in);\n\t\tint x,y,z,i;\n\t\twhile(s.hasNext()){\n\t\t\tx=s.nextInt();\n\t\t\ty=s.nextInt();\n\t\tz=x+y;\n\t\tfor(i=1;10<=z;i++){\n\t\t\tz=z/10;\n\t\t}\n\t\tSystem.out.println(i);\n\t\t}\n\t}\n}... | import java.util.Scanner;
public class Main {
public static void main(String[] a) {
Scanner s=new Scanner(System.in);
int x,y,z,i;
while(s.hasNext()){
x=s.nextInt();
y=s.nextInt();
z=x+y;
for(i=1;10<=z;i++){
z=z/10;
}
System.out.println(i);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
309,
11
],
[
309,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String LINE_SPR = System.getProperty(\"line.separator\");\n final int BIG_MOD = 1000000007;\n\n void ru... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final String LINE_SPR = System.getProperty("line.separator");
final int BIG_MOD = 1000000007;
void run() throws Exception {
String line;
while((line = br.readLine()) != null) {
String[] nums = line.split(" ");
int a = Integer.parseInt(nums[0]);
int b = Integer.parseInt(nums[1]);
int sum = a + b;
int c = 0;
while(sum > 0) {
sum /= 10;
c++;
}
System.out.println(c);
}
}
/*
* Templates
*/
void dumpObjArr(Object[] arr, int n) {
for(int i = 0; i < n; i++) {
System.out.print(arr[i]);
if(i < n - 1)
System.out.print(" ");
}
System.out.println("");
}
void dumpObjArr2(Object[][] arr, int m, int n) {
for(int j = 0; j < m; j++)
dumpObjArr(arr[j], n);
}
int ni() throws Exception {
return Integer.parseInt(br.readLine().trim());
}
long nl() throws Exception {
return Long.parseLong(br.readLine().trim());
}
String ns() throws Exception {
return br.readLine();
}
boolean isPrime(int n) {
for(int i=2;i<n;i++) {
if(n%i==0)
return false;
}
return true;
}
int getPrime(int n) {
List<Integer> primes = new ArrayList<Integer>();
primes.add(2);
int count = 1;
int x = 1;
while(primes.size() < n) {
x+=2;
int m = (int)Math.sqrt(x);
for(int p : primes) {
if(p > m) {
primes.add(x);
break;
}
if(x % p == 0)
break;
}
}
return primes.get(primes.size() - 1);
}
void gcjPrint(String str, int t) {
System.out.println("Case #" + t + ": " + str);
}
public static void main(String[] args) throws Exception {
new Main().run();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
... | [
"import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t//??????????????°\n\t\tScanner sc;\t\t//??\\???\n\t\tint a=0;\n\t\tint b=0;\n\t\tint kotae=0;\n\t\tint i=0;\n\n\t\tsc = new Scanner(System.in);\n\n\t\twhile(sc.hasNext()){\n\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.ne... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//??????????????°
Scanner sc; //??\???
int a=0;
int b=0;
int kotae=0;
int i=0;
sc = new Scanner(System.in);
while(sc.hasNext()){
a = sc.nextInt();
b = sc.nextInt();
kotae = a + b;
String skotae = String.valueOf(kotae);
int keta = skotae.length();
System.out.println(keta);
i= i+1;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
13,
42,
2,
13,
17,
30,
0,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (stdIn.hasNextInt()) {\n\t\t\tint n = stdIn.nextInt();\n\t\t\tint i = stdIn.nextInt();\n\t\t\tint cou = 0;\n\t\t\tint ni=n+i;\n\t\t\twhile(ni>0){\n\t\t\t\tni/=10;... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
while (stdIn.hasNextInt()) {
int n = stdIn.nextInt();
int i = stdIn.nextInt();
int cou = 0;
int ni=n+i;
while(ni>0){
ni/=10;
cou++;
}
System.out.println(cou);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\n\n//Digit Number\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a=sc.nextInt()+sc.nextInt();\n\t\t\tSystem.out.println((a+\"\").length());\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanne... | import java.util.Scanner;
//Digit Number
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int a=sc.nextInt()+sc.nextInt();
System.out.println((a+"").length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
2... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (sc.hasNextInt()) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int val = a+b;\n int cnt = 0;\n while(val > 0) {\n cnt++;\... | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextInt()) {
int a = sc.nextInt();
int b = sc.nextInt();
int val = a+b;
int cnt = 0;
while(val > 0) {
cnt++;
val /= 10;
}
System.out.println(cnt);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
42,
4,
18,
13,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[... | [
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] a){\n\t\tint num1[] = new int[200];\n\t\tint num2[] = new int[200];\n\t\tint i = 0;\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(scanner.hasNext()){\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.... | import java.util.Scanner;
class Main{
public static void main(String[] a){
int num1[] = new int[200];
int num2[] = new int[200];
int i = 0;
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()){
num1[i] = Integer.parseInt(scanner.next());
num2[i] = Integer.parseInt(scanner.next());
System.out.println(String.valueOf(num1[i] + num2[i]).length());
i++;
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
40,
13,
4,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
62,
11
],
[
62,
12
],
[
12,
13
],
[
12,
14
],
... | [
"/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n//package aojdigitnumber;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\n... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//package aojdigitnumber;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
/**
*
* @author in2
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner sc = new Scanner(System.in);
while( sc.hasNext() ){
int a = sc.nextInt();
int b = sc.nextInt();
int c = a + b;
int count = 0;
while(c!=0){
c = c/10;
count++;
}
System.out.println(count);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
13,
17,
4,
18,
13,
18,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
94,
11
],
[
94,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n while (input.ready()) {\n String num... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
while (input.ready()) {
String numStr[] = input.readLine().split(" ");
int num[] = new int[2];
num[0] = Integer.parseInt(numStr[0]);
num[1] = Integer.parseInt(numStr[1]);
System.out.println(getDigitNumber(num[0] + num[1]));
;
}
}
public static int getDigitNumber(int num) {
int digit = 1;
while (num / 10 >= 1) {
num /= 10;
digit++;
}
return digit;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
17,
30,
40,
13,
0,
13,
17,
14,
2,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n\tfinal Scanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()){\n\t int a=sc.nextInt();\n\t int b=sc.nextInt();\n\t int sum=a+b;\n\t int count=0;\n\t while(true){\n\t\tcount++;\n\t\tsum/=10;\n\t\tif(sum==0) bre... | import java.util.Scanner;
class Main{
public static void main(String[] args){
final Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
int a=sc.nextInt();
int b=sc.nextInt();
int sum=a+b;
int count=0;
while(true){
count++;
sum/=10;
if(sum==0) break;
}
System.out.println(count);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
41,
13,
17,
42,
17,
30,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n int a,b,total;\n while(scan.hasNextInt()){\n a= scan.nextInt();\n b= scan.nextInt();\n total = a+b;\n int i=1;\n while(true){\n total = total /1... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a,b,total;
while(scan.hasNextInt()){
a= scan.nextInt();
b= scan.nextInt();
total = a+b;
int i=1;
while(true){
total = total /10;
if (total == 0){
System.out.println(i);
break;
}
i++;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
4,
18,
13,
2,
13,
13,
12,
13,
30,
4,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main {\n private static void solve() {\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNextInt()) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n System.out.println(String.valueOf(a + b).length());\n ... | import java.util.Scanner;
class Main {
private static void solve() {
Scanner scanner = new Scanner(System.in);
while (scanner.hasNextInt()) {
int a = scanner.nextInt();
int b = scanner.nextInt();
System.out.println(String.valueOf(a + b).length());
}
}
public static void main(String... args) {
solve();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint x = a + b;\n\t\t\tint d = 0;\n\t\t\t\n\t\t\twhile(x != 0){\n\t\t\t\tx /= 10;\n\t\t\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int a = sc.nextInt();
int b = sc.nextInt();
int x = a + b;
int d = 0;
while(x != 0){
x /= 10;
d++;
}
System.out.println(d);
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
4,
18,
13,
17,
13,
4,
18,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\npublic class Main {\npublic static void main(String args[]) throws IOException {\nBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\nwhile(true){\nString s = r.readLine();\nif(s == null) break;\nint i = s.indexOf(\" \");\nint sum = Integer.valueOf(s.substring(0, i)) + Int... | import java.io.*;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) + Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
67,
8
],
[
67,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\npublic class Main\n{\n public static void main(String args[]) throws Exception\n {\n Scanner cin=new Scanner(System.in);\n int a,b;\n cin.useDelimiter(\"\\n| \");\n while(cin.hasNext()){\n\t a = cin.nextInt();\n\t b = cin.nextInt();\n\t int sum = a+b;\n\t int coun... | import java.io.*;
import java.util.*;
public class Main
{
public static void main(String args[]) throws Exception
{
Scanner cin=new Scanner(System.in);
int a,b;
cin.useDelimiter("\n| ");
while(cin.hasNext()){
a = cin.nextInt();
b = cin.nextInt();
int sum = a+b;
int count = 0;
while (sum>0){
sum = sum/10;
count++;
}
System.out.println(count);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] a){\n \tint fa = 0;\n \tint fb = 0;\n \tScanner scan = new Scanner(System.in);\n \twhile (scan.hasNext()){\n \tfa = scan.nextInt();\n \tfb = scan.nextInt();\n \tint sum = fa + fb;\n \t System.out.println((int) Math... | import java.util.Scanner;
class Main{
public static void main(String[] a){
int fa = 0;
int fb = 0;
Scanner scan = new Scanner(System.in);
while (scan.hasNext()){
fa = scan.nextInt();
fb = scan.nextInt();
int sum = fa + fb;
System.out.println((int) Math.log10(sum) + 1);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
30,
38,
5,
13,
30,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
42,
2,
13,
17,
30,
0,
13,
20,
41,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.StringTokenizer;\n \n/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\n \n/**\n *\n * @author wijebandara\n */\npublic class Main {\n public static void main(String[] args) {\n java.io.BufferedReader in = new java.io.BufferedReader(n... | import java.util.StringTokenizer;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author wijebandara
*/
public class Main {
public static void main(String[] args) {
java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
{
try {
String s =in.readLine();
StringTokenizer st;
while(s!=null)
{
st = new StringTokenizer(s);
int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
System.out.println((int)Math.log10(p)+1);
s =in.readLine();
}
} catch (Exception ex) {
System.exit(0);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()){\n\n\t\t\tint num1 = sc.nextInt();\n\t\t\tint num2 = sc.nextInt();\n\n\t\t\tint total = num1 + num2;\n\t\t\tStr... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
while (sc.hasNext()){
int num1 = sc.nextInt();
int num2 = sc.nextInt();
int total = num1 + num2;
String str = Integer.toString(total);
System.out.println(str.length());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.*;\n \nclass Main {\n public static void main(String[] args) {\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<Integer> digitList = new ArrayList<>(); \n \t\n \tint a, b;\n \tint digit;\n \tString strDigit;\n \tint cnt = 0;\n \twhile(sc.hasNext()) {\n \... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<Integer> digitList = new ArrayList<>();
int a, b;
int digit;
String strDigit;
int cnt = 0;
while(sc.hasNext()) {
a = sc.nextInt();
b = sc.nextInt();
digit = a + b;
strDigit = String.valueOf(digit);
digitList.add(strDigit.length());
cnt++;
}
for(int i = 0; i < cnt; i++) {
System.out.println(digitList.get(i));
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.