提出 #54798608


ソースコード 拡げる

import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<String> names = new ArrayList<>();
        int count = 0;
        for (int i = 0; i < N; i++) {
            String name = sc.next();
            if (name.equals("Takahashi")) {
                count++;
            }
        }

        System.out.println(count);

    }

}

提出情報

提出日時
問題 A - Count Takahashi
ユーザ andrywawa
言語 Java (OpenJDK 17)
得点 100
コード長 475 Byte
結果 AC
実行時間 72 ms
メモリ 38300 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 14
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 69 ms 37788 KiB
00_sample_01.txt AC 68 ms 37796 KiB
00_sample_02.txt AC 69 ms 37836 KiB
01_random_03.txt AC 72 ms 38204 KiB
01_random_04.txt AC 71 ms 37936 KiB
01_random_05.txt AC 70 ms 38100 KiB
01_random_06.txt AC 70 ms 37864 KiB
01_random_07.txt AC 72 ms 37876 KiB
01_random_08.txt AC 72 ms 38300 KiB
01_random_09.txt AC 72 ms 37884 KiB
01_random_10.txt AC 67 ms 37736 KiB
01_random_11.txt AC 72 ms 38176 KiB
01_random_12.txt AC 69 ms 37732 KiB
01_random_13.txt AC 69 ms 37788 KiB