結果
問題 |
No.558 575検出するやつ
|
ユーザー |
|
提出日時 | 2019-08-12 18:24:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 500 ms |
コンパイル使用メモリ | 64,172 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 06:04:28 |
合計ジャッジ時間 | 1,183 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 WA * 1 |
other | AC * 8 WA * 7 |
ソースコード
#include <string> #include <iostream> int main() { std::string S; std::cin >> S; bool ans = false; for (int i = 0; i + 2 < S.size(); ++i) { if (S[0] == '5' && S[1] == '7' && S[2] == '5') { ans = true; } } std::cout << (ans ? "YES" : "NO") << std::endl; return 0; }