結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
yosswi414
|
| 提出日時 | 2017-08-27 00:25:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 274 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 23,552 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-15 17:53:53 |
| 合計ジャッジ時間 | 948 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 4 |
| other | AC * 1 WA * 14 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:8: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | fgets(buf, sizeof(buf), stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int i;
char buf[255];
fgets(buf, sizeof(buf), stdin);
for(i=0;i<sizeof(buf)-2;i++){
if(buf[i]=='5' & buf[i+1]=='7' & buf[i+2]=='5')printf("YES");
return 0;
}
printf("NO");
return 0;
}
yosswi414