Skip to content

Instantly share code, notes, and snippets.

@mojaie
Created November 28, 2011 08:46
Show Gist options
  • Save mojaie/1399661 to your computer and use it in GitHub Desktop.
Save mojaie/1399661 to your computer and use it in GitHub Desktop.
AOJ:0002
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
while(scn.hasNext()) {
int a = scn.nextInt();
int b = scn.nextInt();
int ab = a + b;
String str = ab + "";
System.out.println(str.length());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment