結果

問題 No.3010 水色コーダーさん
ユーザー さかさのさかな
提出日時 2025-01-25 12:34:14
言語 Java
(openjdk 23)
結果
AC  
実行時間 964 ms / 2,000 ms
コード長 473 bytes
コンパイル時間 6,784 ms
コンパイル使用メモリ 76,424 KB
実行使用メモリ 66,288 KB
最終ジャッジ日時 2025-01-25 22:04:40
合計ジャッジ時間 25,627 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ans = 0;
		for(int i = 0;i < n;i++) {
			String s = sc.next();
			int r = sc.nextInt();
			if(r < 1200)continue;
			for(int j = 0;j < 4;j++) {
				if(s.charAt(j) == 'x') {
					ans++;
					break;
				}
			}
		}System.out.print(ans);
	}

}
0