Hints 01
What is STDIN and STDOUT?
In Java this is System.in
and System.out
.
Perfect Travelers 1
Searching all of the possibilities can be slow when there are a lot of them. Divisors come in pairs.
A | B |
---|---|
1 | 36 |
2 | 18 |
3 | 12 |
4 | 9 |
6 | 6 |
Pipe Pals
Many causes of problems here.
-
Get Java to tell you the character codes.
char c = 'A'; int cn = (int) c;
-
Scanner will read a blank string if you use
nextLine()
after the last integer on a line. -
Read the Constraints section to see what size numbers and input strings you need to be prepared to handle.