結果
問題 | No.700 LOVE |
ユーザー |
|
提出日時 | 2024-03-30 16:11:52 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 10,852 ms |
コンパイル使用メモリ | 246,784 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-30 17:33:58 |
合計ジャッジ時間 | 11,563 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
// No.700 LOVE package main import ( "fmt" "strings" ) func main() { var n, m int fmt.Scan(&n, &m) var s string var isLove bool for i := 0; i < n; i++ { fmt.Scan(&s) if strings.Contains(s, "LOVE") { isLove = true } } if isLove { fmt.Println("YES") } else { fmt.Println("NO") } }