結果

問題 No.3010 水色コーダーさん
ユーザー nekomarudesu
提出日時 2025-04-03 12:00:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 588 bytes
コンパイル時間 1,252 ms
コンパイル使用メモリ 115,732 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-04-03 12:00:17
合計ジャッジ時間 6,263 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <vector>
#include <iostream>
#include <string>
#include <ostream>
#include <map>
#include <set>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <list>
#include <regex>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, n) for (int i = 1; i < (n); i++)
using namespace std;

int main()
{
    int n, m;
    cin >> n >> m;
    int cnt = 0;
    rep(i, n)
    {
        string s;
        int r;
        cin >> s >> r;
        if((s[0] == 'x' || s[1] == 'x' || s[2] == 'x' || s[3] == 'x') && r >= 1200)cnt++;
    }cout << cnt << endl;
}
0