結果

問題 No.3010 水色コーダーさん
ユーザー ああ
提出日時 2025-02-02 09:28:47
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 819 bytes
コンパイル時間 9,182 ms
コンパイル使用メモリ 276,564 KB
実行使用メモリ 10,944 KB
最終ジャッジ日時 2025-02-02 09:29:04
合計ジャッジ時間 9,852 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define P pair<ll,ll>
#define pub push_back
#define pob pop_back
#define mp make_pair
#define nl '\n' //new line
#define mset multiset
#define lb lower_bound
#define rep(i,n) for(ll i=0;i<(ll)(n);++i)
template<typename T> bool chmin(T& a,T b){if(a>b){a=b;return true;}return false;}
template<typename T> bool chmax(T& a,T b){if(a<b){a=b;return true;}return false;}
const int num=10'000'09; //2*10^5+9
const int INF=1'000'000'000; //10^9

int main(){
  ll n,m; cin>>n>>m;
  vector<string> s(n+1);
  vector<ll> r(n+1);
  for(int i=1;i<=n;++i){
    cin>>s[i]>>r[i];
  }
  
  ll ans=0;
  for(int i=1;i<=n;++i){
    bool ok=true;
    for(int j=0;j<4;++j){
        if(s[i][j]=='x') ok=false;
    }
   if(ok==false&&r[i]>=1200) ans++;
  } 

  cout<<ans<<nl;
}
0