結果

問題 No.700 LOVE
ユーザー Ryuki87241978Ryuki87241978
提出日時 2022-10-16 04:13:09
言語 C++17(clang)
(17.0.6 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,421 bytes
コンパイル時間 4,718 ms
コンパイル使用メモリ 164,032 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-09 09:24:56
合計ジャッジ時間 5,755 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:41:25: warning: variable 'n' is uninitialized when used here [-Wuninitialized]
    vector<string> list(n);
                        ^
main.cpp:40:10: note: initialize the variable 'n' to silence this warning
    int n,m;
         ^
          = 0
1 warning generated.

ソースコード

diff #

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <map>
#include <string>
#include <cmath>
#include <algorithm>
#include <queue>
#include <math.h>
#include <ctype.h>
#include <numeric>
#include <stdexcept>
#include <regex>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repe(i,x,n) for(int i=x; i<(n); ++i)
#define pie 3.1415926535897932384
#define INF 10010010000
#define _GLIBCXX_DEBUG
#define All(a) (a).begin(),(a).end()
#define rAll(a) (a).rbegin(),(a).rend()
#define pb push_back
#define mk make_pair
#define yes cout << "Yes" << endl;
#define no cout << "No" << endl;
#define decimal cout << fixed << setprecision(20);
#define nextP next_permutation
#define em emplace_back
using ll = long long;
using P = pair<int, int>;
const ll MOD = 1000000007;
const ll INF1 = 1e18;
const ll mod = 998244353;

template<class T> inline bool chmax(T& a, T b) {if(a < b) {a = b; return 1;} return 0; }
template<class T> inline bool chmin(T& a, T b) {if(a > b) {a = b; return 1;} return 0; }

int main() {
    
    int n,m;
    vector<string> list(n);
    for(int i=0; i<n; i++) {
        cin >> list[i];
    }
    regex reg{R"(.*LOVE.*)"};
    smatch k;
    for(int i=0; i<n; i++) {
        bool judge = regex_search(list[i],k,reg);
        if(judge) {
            cout << "YES" << endl;
            return 0;
        }
    }
    cout << "NO" << endl;
    return 0;
    
}
0