結果
| 問題 |
No.700 LOVE
|
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-21 15:12:42 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 585 bytes |
| コンパイル時間 | 1,067 ms |
| コンパイル使用メモリ | 29,824 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-09 02:37:14 |
| 合計ジャッジ時間 | 1,843 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 7 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
char str[100]="";
bool lov=false;
int num,len;
scanf("%d %d",&num,&len);
for(int i=0;i<num;i++)
{
scanf("%s",str);
for(int j=0;j<len;j++)
{
if(strncmp(str+i,"LOVE",4)==0)
{
printf("YES");
lov=true;
break;
}
}
if(lov==true)
{
break;
}
}
if(lov==false)
{
printf("NO");
}
}
funakoshi