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