結果

問題 No.418 ミンミンゼミ
ユーザー hisocuhisocu
提出日時 2016-09-11 17:58:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,523 bytes
コンパイル時間 5,103 ms
コンパイル使用メモリ 229,848 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-28 12:11:01
合計ジャッジ時間 6,177 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <ios>
#include <sstream>
#include <cstdio>

#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include <regex>
#include <utility>

#include <cstddef>
#include <cstdint>
#include <cfloat>
#include <limits>

#include <array>
#include <bitset>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <valarray>
#include <vector>
#include <deque>
#include <forward_list>


#define FOR(i, a, b) for(itr i{a}; i < (b); ++i)
#define RFOR(i, a, b) for(itr i{(b)-1};i >= (a); --i)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i, n) RFOR(i, 0, n)
#define ALL(a) std::begin(a), std::end(a)
#define TYPE(t) decltype(t)
#define _IT ::iterator
#define UN unsigned
#define SC(t, a) static_cast<type>(a)

template<typename T>
inline bool in_range(T const &lower, T const &a, T const &upper){ return lower < a && a < upper;}

constexpr double inf = std::numeric_limits<double>::infinity();

using i8 = std::int_fast8_t;  using i16 = std::int_fast16_t;
using i32 = std::int_fast32_t;  using i64 = std::int_fast64_t;
using u8 = std::uint_fast8_t; using u16 = std::uint_fast16_t;
using u32 = std::uint_fast32_t; using u64 = std::uint_fast64_t;

using namespace std;

using itr = i32;


int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);

  string str;
  regex re("mi-*n");
  smatch ma;

  cin >> str;

  regex_search(str, ma, re);

  cout << ma.size()<< endl;

  return 0;
}
0