結果
| 問題 | No.3010 水色コーダーさん |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2025-01-28 14:02:17 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 21 ms / 2,000 ms |
| コード長 | 659 bytes |
| 記録 | |
| コンパイル時間 | 370 ms |
| コンパイル使用メモリ | 52,816 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-25 16:00:15 |
| 合計ジャッジ時間 | 3,791 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 3010.cc: No.3010 豌エ濶イ繧ウ繝シ繝繝シ縺輔s - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
const int MAX_N = 200000;
const int MAX_M = 10;
const int K = 4;
const int R = 1200;
/* typedef */
/* global variables */
/* subroutines */
/* main */
int main() {
int n, m;
scanf("%d%d", &n, &m);
int cnt = 0;
for (int i = 0; i < n; i++) {
char s[MAX_M + 4];
int ri;
scanf("%s%d", s, &ri);
int xc = 0;
for (int j = 0; j < K; j++)
if (s[j] == 'x') xc++;
if (ri >= R && xc > 0) cnt++;
}
printf("%d\n", cnt);
return 0;
}
tnakao0123