結果
問題 |
No.558 575検出するやつ
|
ユーザー |
|
提出日時 | 2025-06-16 02:28:31 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 578 bytes |
コンパイル時間 | 3,365 ms |
コンパイル使用メモリ | 276,616 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-16 02:28:35 |
合計ジャッジ時間 | 4,261 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// string s; cin >> s; //////////////// 出力変数定義 //////////////// string result = "NO"; //////////////////// 処理 //////////////////// int m = s.size(); for (int i=0; i+2<s.size(); i++) { if (s.substr(i,3)=="575") result = "YES"; } //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }