結果

問題 No.1591 Two Digits
ユーザー NASU41NASU41
提出日時 2021-05-04 13:28:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 492 bytes
コンパイル時間 3,464 ms
コンパイル使用メモリ 72,608 KB
実行使用メモリ 56,256 KB
最終ジャッジ日時 2023-09-14 06:45:13
合計ジャッジ時間 5,441 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
53,952 KB
testcase_01 AC 118 ms
55,848 KB
testcase_02 AC 117 ms
55,996 KB
testcase_03 AC 116 ms
55,388 KB
testcase_04 AC 117 ms
56,040 KB
testcase_05 AC 117 ms
55,596 KB
testcase_06 AC 119 ms
55,692 KB
testcase_07 AC 119 ms
55,936 KB
testcase_08 AC 116 ms
55,424 KB
testcase_09 AC 115 ms
55,748 KB
testcase_10 AC 117 ms
55,616 KB
testcase_11 AC 117 ms
56,076 KB
testcase_12 AC 116 ms
55,936 KB
testcase_13 AC 117 ms
55,480 KB
testcase_14 AC 118 ms
55,900 KB
testcase_15 AC 119 ms
56,000 KB
testcase_16 AC 117 ms
55,588 KB
testcase_17 AC 117 ms
56,064 KB
testcase_18 AC 117 ms
56,256 KB
testcase_19 AC 120 ms
55,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception{
        Scanner sc = new Scanner(System.in);
        //入力をあえて文字列のまま受け取ります
        String n = sc.next();
        //「2桁」とは「文字列の長さが2」ということなので, これを条件式にします
        if(n.length() == 2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}
0