SWEA 2070. 큰 놈, 작은 놈, 같은 놈

SWEA 2070. 큰 놈, 작은 놈, 같은 놈

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

import java.util. Scanner ; public class Solution { public static void main( String [] args) { Scanner sc = new Scanner ( System . in ); int T; T = sc.nextInt(); for ( int test_case = 1 ; test_case < = T; test_case + + ) { int a = sc.nextInt(); int b = sc.nextInt(); char ch = 0 ; if (a > b) ch = '>' ; else if (a = = b) ch = '=' ; else if (a < b) ch = '<' ; System . out . println ( "#" + test_case + " " + ch); } } } Colored by Color Scripter

from http://nrinzip.tistory.com/5 by ccl(A) rewrite - 2021-10-01 11:27:19