結果

問題 No.1591 Two Digits
ユーザー takutakutakutaku
提出日時 2021-08-27 09:00:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 113 ms / 1,000 ms
コード長 423 bytes
コンパイル時間 1,954 ms
コンパイル使用メモリ 71,468 KB
実行使用メモリ 56,572 KB
最終ジャッジ日時 2023-08-12 10:49:22
合計ジャッジ時間 5,536 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
55,252 KB
testcase_01 AC 103 ms
55,988 KB
testcase_02 AC 103 ms
55,636 KB
testcase_03 AC 103 ms
55,840 KB
testcase_04 AC 105 ms
55,608 KB
testcase_05 AC 102 ms
56,128 KB
testcase_06 AC 107 ms
55,684 KB
testcase_07 AC 101 ms
55,280 KB
testcase_08 AC 104 ms
55,280 KB
testcase_09 AC 105 ms
55,560 KB
testcase_10 AC 106 ms
55,288 KB
testcase_11 AC 110 ms
55,476 KB
testcase_12 AC 104 ms
55,880 KB
testcase_13 AC 107 ms
55,700 KB
testcase_14 AC 109 ms
56,572 KB
testcase_15 AC 100 ms
55,724 KB
testcase_16 AC 101 ms
55,472 KB
testcase_17 AC 109 ms
55,312 KB
testcase_18 AC 109 ms
55,872 KB
testcase_19 AC 113 ms
55,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        sc.close();
        
        int len = String.valueOf(num).length();
        
        if(len == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");    
        }
        
    }
}
0