結果

問題 No.3010 水色コーダーさん
ユーザー クッキーズ
提出日時 2025-01-25 12:42:47
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 432 bytes
コンパイル時間 3,780 ms
コンパイル使用メモリ 273,108 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-25 22:18:08
合計ジャッジ時間 6,180 ms
ジャッジサーバーID
(参考情報)
judge1 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,a,n) for(int i=(a);i<(n);i++)

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