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