結果

問題 No.791 うし数列
ユーザー Mcpu3
提出日時 2019-02-23 15:06:06
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 4,944 ms
コンパイル使用メモリ 210,628 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 02:23:09
合計ジャッジ時間 5,601 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <regex>
#include <string>
using namespace std;

int main() {
	string N;
	cin >> N;
	if (regex_match(N, regex("13+"))) cout << N.size() - 1;
	else cout << -1;
}
0