結果

問題 No.3010 水色コーダーさん
ユーザー anago-pie
提出日時 2025-02-04 17:29:52
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 431 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 75,276 KB
最終ジャッジ日時 2025-02-04 17:30:03
合計ジャッジ時間 9,361 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(INPUT){
  const input=INPUT.split("\n");
  const [N,M]=input[0].split(" ").map(_=>parseInt(_));
  let ans = 0;
  for(let i=0;i<N;i++){
    const [S,r]=input[1+i].split(" ");
    const R=parseInt(r);
    if(R>=1200 && S.slice(0,4).includes('x')){
      ans++;
    }
  }
  console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0