結果
問題 | No.3010 水色コーダーさん |
ユーザー |
|
提出日時 | 2025-01-25 12:37:30 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 694 bytes |
コンパイル時間 | 1,311 ms |
コンパイル使用メモリ | 129,940 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-25 22:05:59 |
合計ジャッジ時間 | 3,249 ms |
ジャッジサーバーID (参考情報) |
judge9 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <iostream> #include <algorithm> #include <cassert> #include <cmath> #include <cstdint> #include <set> #include <unordered_set> #include <map> #include <vector> #include <string> #include <deque> #include <queue> #include <iomanip> using namespace std; using ll = long long; void solve(); int main(void) { cin.tie(nullptr); ios::sync_with_stdio(false); solve(); return 0; } void solve() { ll n; cin >> n; ll m; cin >> m; ll ans = 0; for(int i=0;i<n;i++) { string s; cin >> s; ll r; cin >> r; bool match = true; match = match && r >= 1200; match = match && (s[0] == 'x' || s[1] == 'x' || s[2] == 'x' || s[3] == 'x'); ans += int(match); } cout << ans; }