結果

問題 No.3010 水色コーダーさん
ユーザー champignondayo
提出日時 2025-02-16 17:46:09
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 1,132 bytes
コンパイル時間 3,399 ms
コンパイル使用メモリ 274,432 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-02-16 17:46:16
合計ジャッジ時間 6,571 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

//#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>

using namespace std;

#define rep(i, l, n) for(int i = (int)(l); i < (int)(n); i++)
#define ll long long
#define ld long double
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()

template<class T> void chmin(T &a, T b) {if(a > b) a = b;}
template<class T> void chmax(T &a, T b) {if(a < b) a = b;}
template<class T> using spq = priority_queue<T, vector<T>, greater<T>>;

//bool -> Yes/No
string answer(const bool b) {
    if(b) return "Yes";
    else return "No";
}

void fix(int k) {cout << fixed << setprecision(k);}

template<class T> void out(T a) {
    cout << a << endl;
}

const int inf = 2e9;
const ll INF = 2e18;
const ld pi = 3.14159265358979323846264338;

array<int, 4> dx = {0, 0, -1, 1}, dy = {-1, 1, 0, 0};

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int cnt = 0;
    int n, m; cin >> n >> m;
    while(n--) {
        string s; int rating; cin >> s >> rating;
        if(rating >= 1200) {
            if(s[0] == 'x' || s[1] == 'x' || s[2] == 'x' || s[3] == 'x') cnt++;
        }
    }
    cout << cnt << '\n';
}
0