結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2017-12-03 17:19:08 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 121 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-28 14:33:29 |
合計ジャッジ時間 | 1,043 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 15 |
ソースコード
#include <stdio.h> int main(){ char S[100]={0}; scanf("%s", S); int count=0; for(int i=0;i<99;i++){ if(S[i]=='5'&&S[i+1]=='7'&&S[i+2]=='5'){ count = 1; } } if(count == 1){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }