結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-16 21:07:59 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 318 bytes |
| コンパイル時間 | 307 ms |
| コンパイル使用メモリ | 28,160 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 04:03:52 |
| 合計ジャッジ時間 | 1,072 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#include <stdio.h>
int main(void)
{
char s[101];
scanf("%s", &s);
int ans = 0;
for (int i = 0; i < 100; i++) {
if (s[i] == '5') {
if (s[i + 1] == '7') {
if (s[i + 2] == '5') {
ans++;
break;
}
}
}
}
if (ans == 1) printf("YES\n");
else printf("NO\n");
return 0;
}