結果

問題 No.3010 水色コーダーさん
ユーザー Fullmoon85072
提出日時 2025-03-22 11:11:27
言語 Java
(openjdk 23)
結果
AC  
実行時間 880 ms / 2,000 ms
コード長 699 bytes
コンパイル時間 3,957 ms
コンパイル使用メモリ 77,024 KB
実行使用メモリ 67,980 KB
最終ジャッジ日時 2025-03-22 11:11:49
合計ジャッジ時間 22,188 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No3010 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String[] splitedLine = sc.nextLine().split(" ");
		int humanNum = Integer.parseInt(splitedLine[0]);
		int questionNum = Integer.parseInt(splitedLine[1]);
		
		int ngNum = 0;
		for(int i=0; i<humanNum; i++) {
			splitedLine = sc.nextLine().split(" ");
			String question_result = splitedLine[0];
			int rate = Integer.parseInt(splitedLine[1]);
			
			if(rate < 1200)continue;
			
			for(int j=0; j<4; j++) {
				char c = question_result.charAt(j);

				if('x' == (c)) {
					ngNum += 1;
					break;
				}
			}
		}
		
		System.out.println(ngNum);
		sc.close();
	}
}
0