結果

問題 No.558 575検出するやつ
ユーザー Kazu05Kazu05
提出日時 2019-02-21 21:18:31
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,005 bytes
コンパイル時間 894 ms
コンパイル使用メモリ 93,464 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-01 04:52:58
合計ジャッジ時間 1,770 ms
ジャッジサーバーID
(参考情報)
judge4 / 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 AC 2 ms
6,940 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 1 ms
6,944 KB
testcase_18 AC 2 ms
6,940 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <istream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;

#define REP(i, n) for(int i = 0; i < n;i++)

typedef long long ll;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	/*
	int n, m;
	int a[110];
	cin >> n >> m;
	for (int i = 0; i < n; i++) cin >> a[i];
	for (int i = 0; i < m; i++) {
		for (int j = 0; j < n; j++) {
			if (j % i > (j + 1) % i) swap(a[i], a[i + 1]);
		}
	}
	cout << a[0];
	for (int i = 0; i < n; i++) cout << a[i] << endl;
	*/
	string s;
	cin >> s;
	int l = s.length();
	REP(i, l - 2) {
		cout << s[i] << s[i + 1] << s[i + 2] << endl;
		if (s[i] == '5' && s[i + 1] == '7' && s[i + 2] == '5') {
			cout << "YES" << endl;
			return 0;
		}
	}
	cout << "NO" << endl;
}
0