結果

問題 No.558 575検出するやつ
ユーザー funakoshi
提出日時 2019-08-20 17:18:35
言語 C
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 430 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 30,464 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-06 12:39:35
合計ジャッジ時間 1,144 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 13 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    char str[150]="";
    scanf("%s",str);
    bool Isinclude=false;
    for(int i=0;i<strlen(str)-2;i++)
    {
        if(strncmp(str+i,"575",3)==0)
        {
            Isinclude=true;
            printf("YES");
            break;
        }
    }
    if(Isinclude==false)
    {
        printf("NO");
    }
    
}
0