結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2018-06-18 23:09:25 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 516 bytes |
コンパイル時間 | 14,686 ms |
コンパイル使用メモリ | 222,728 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 23:22:11 |
合計ジャッジ時間 | 14,587 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
package main import ( "bufio" "fmt" "os" "strconv" "strings" ) var sc = bufio.NewScanner(os.Stdin) func main() { ss := strings.Split(nextLine(), " ") row, _ := strconv.Atoi(ss[0]) //length, _ := strconv.Atoi(ss[1]) for i := 0; i < row; i++ { s := nextLine() if strings.Index(s, "LOVE") >= 0 { success() os.Exit(0) } } fail() } func nextLine() string { var s string if sc.Scan() { s = sc.Text() } return s } func success() { fmt.Println("YES") } func fail() { fmt.Println("NO") }