結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
ianlinathome
|
| 提出日時 | 2017-11-10 05:24:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 278 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 22,656 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-24 10:38:06 |
| 合計ジャッジ時間 | 682 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%s",c);
| ~~~~~^~~~~~~~
ソースコード
#include <stdio.h>
int main(){
char c[10000];
for(int i=0;i<10000;i++)c[i]='\0';
scanf("%s",c);
for(int i=0;c[i]!='\0';i++){
if(c[i]=='5'&&c[i+1]=='7'&&c[i+2]=='5'){
printf("YES\n");
return 0;
}
}
printf("NO\n");
}
ianlinathome