結果
| 問題 |
No.3010 水色コーダーさん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-31 17:33:39 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 2,000 ms |
| コード長 | 582 bytes |
| コンパイル時間 | 5,524 ms |
| コンパイル使用メモリ | 160,716 KB |
| 実行使用メモリ | 7,920 KB |
| 最終ジャッジ日時 | 2025-01-31 17:33:51 |
| 合計ジャッジ時間 | 10,612 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
import std;
void main () {
int N, M; readln.read(N, M);
int ans = 0;
foreach (i; 0 .. N) {
string S;
int R;
readln.read(S, R);
bool cond = false;
foreach (j; 0 .. min(4L, S.length)) {
if (S[j] == 'x') cond = true;
}
if (cond && 1200 <= R) {
ans++;
}
}
writeln(ans);
}
void read (T...) (string S, ref T args) {
import std.conv : to;
import std.array : split;
auto buf = S.split;
foreach (i, ref arg; args) {
arg = buf[i].to!(typeof(arg));
}
}