結果
| 問題 | No.558 575検出するやつ |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-20 17:19:48 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 30,464 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-06 12:39:42 |
| 合計ジャッジ時間 | 725 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#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(strlen(str)<3)
{
break;
}
if(strncmp(str+i,"575",3)==0)
{
Isinclude=true;
printf("YES");
break;
}
}
if(Isinclude==false)
{
printf("NO");
}
}
funakoshi