結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i=0;i<n;i++)
bool badcoder(string s) {
    bool tmp=false;
    rep(i,4) {
        if(s[i]=='x') {
            tmp=true;
        }
    }
    return tmp;
}
int main() {
    ll n,m;
    cin>>n>>m;
    ll ans=0;
    rep(i,n) {
        string s;
        ll r;
        cin>>s>>r;
        if(badcoder(s) && r>=1200) {
            ans++;
        }
    }
    cout<<ans<<endl;
}
0