結果
| 問題 |
No.2862 NOT FOUND 404
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-20 13:55:17 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 396 bytes |
| コンパイル時間 | 13,866 ms |
| コンパイル使用メモリ | 424,744 KB |
| 実行使用メモリ | 57,124 KB |
| 最終ジャッジ日時 | 2024-10-20 13:55:44 |
| 合計ジャッジ時間 | 19,900 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | WA * 1 RE * 11 |
ソースコード
// https://yukicoder.me/problems/no/2862
fun main() {
val n = readln().toInt()
val s = readln().split(" ").map { it.toInt() }
for (i in 0..<n - 2) {
if (s[i] == 4) {
if (s[i + 1] == 0) {
if (s[i + 2] == 4) {
println("Found")
return
}
}
}
}
println("NotFound")
}