๋ฐ์ํ Codeforecs2 [Codeforces] 1167A: Telephone Number https://codeforces.com/problemset/problem/1167/A Problem - 1167A - Codeforces codeforces.com ์ฝ๋ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int t = scan.nextInt(); for(int tc=0; tc=11) ? "YES" : "NO"; System.out.println(result); } scan.close(); } } ํ์ด ์ฃผ์ด์ง ๋ฌธ์์ด์์ ๋ฌธ์๋ฅผ ์ญ์ ํ๊ฑฐ๋ ์ญ์ ํ์ง ์๊ณ , Telephone Number๊ฐ ๋๋์ง ํ์ธํ๋ ๋ฌธ์ . Tele.. 2020. 3. 26. [Codeforces] 1257A: Two Rival Students https://codeforces.com/problemset/problem/1257/A Problem - 1257A - Codeforces codeforces.com ์ฝ๋ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int t = scan.nextInt(); for(int tc=0; tc= n) System.out.println(n-1); else System.out.println(diff); } scan.close(); } } ํ์ด x ์๋งํผ ๋ ํ์์ ๊ฑฐ๋ฆฌ๋ฅผ ๋ฒ๋ฆด ์ ์๊ณ , ๋ ํ์์ ๊ฑฐ๋ฆฌ๊ฐ ์ต๋๊ฐ ๋๋๋ก ๋ง๋ค๊ธฐ. 1) ์ฃผ.. 2020. 3. 18. ์ด์ 1 ๋ค์ ๋ฐ์ํ