結果
問題 | No.3010 水色コーダーさん |
ユーザー |
|
提出日時 | 2025-02-01 20:26:01 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 131 ms / 2,000 ms |
コード長 | 853 bytes |
コンパイル時間 | 3,882 ms |
コンパイル使用メモリ | 279,388 KB |
実行使用メモリ | 10,220 KB |
最終ジャッジ日時 | 2025-02-01 20:26:15 |
合計ジャッジ時間 | 7,216 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;#ifdef local#include <debug.hpp>#else#define debug(...)#endif#define rep(i, n) for (int i = 0; i < n; i++)template <class T> istream& operator>>(istream& I, vector<T>& V) {for (T& X : V) I >> X; return I;}template <class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;}template <class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;}vector<int> di = {-1, 1, 0, 0}, dj = {0, 0, -1, 1}; int inf = 2e9; long INF = 1e18;int main() {int n, m;cin >> n >> m;vector<int> r(n);vector<string> s(n);rep(i, n) cin >> s[i] >> r[i];int ans = 0;rep(i, n) if (r[i] >= 1200) {int cnt = 0;rep(j, 4) if (s[i][j] == 'x') cnt++;if (cnt) ans++;}cout << ans << endl;return 0;}