結果

問題 No.3010 水色コーダーさん
ユーザー tobbie
提出日時 2025-04-13 00:00:25
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 2,563 ms
コンパイル使用メモリ 194,068 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-13 00:00:33
合計ジャッジ時間 7,508 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) for (int i = 0; i < (int)n; i++)

int main() {
  int n, m;
  cin >> n >> m;
  int ans = 0;
  rep(i, n) {
    string s;
    int r;
    cin >> s >> r;
    bool f = true;
    rep(i, 4) {
      if (s[i] == 'x') f = false;
    }
    if (r >= 1200 && !f)
      ans++;
  }
  cout << ans << endl;
  return 0;
}
0