結果
問題 | No.3010 水色コーダーさん |
ユーザー |
|
提出日時 | 2025-01-25 12:46:46 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 118 ms / 2,000 ms |
コード長 | 483 bytes |
コンパイル時間 | 3,277 ms |
コンパイル使用メモリ | 276,988 KB |
実行使用メモリ | 10,292 KB |
最終ジャッジ日時 | 2025-01-25 22:21:08 |
合計ジャッジ時間 | 6,398 ms |
ジャッジサーバーID (参考情報) |
judge9 / judge7 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> int main() { int n, m; std::cin >> n >> m; std::vector<int> r(n); std::vector<std::string> s(n); for (int i = 0; i < n; ++i) { std::cin >> s[i] >> r[i]; } int ans = 0; for (int i = 0; i < n; ++i) { if (r[i] < 1200) continue; for (int j = 0; j < 4; ++j) { if (s[i][j] == 'x') { ans++; break; } } } std::cout << ans << std::endl; }