結果
問題 |
No.558 575検出するやつ
|
ユーザー |
|
提出日時 | 2023-05-06 23:49:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 798 ms |
コンパイル使用メモリ | 67,600 KB |
最終ジャッジ日時 | 2025-02-12 20:52:14 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 15 |
ソースコード
#include <iostream> using namespace std; #define YES cout << "YES" << endl #define NO cout << "NO" << endl int main(void){ string s; cin >> s; bool Isfsf = false; for (int i = 0; i < (int)s.size()-2; i++) { if (s.substr(i, 3) == "575") Isfsf = true; } Isfsf ? YES : NO; }