結果

問題 No.2862 NOT FOUND 404
コンテスト
ユーザー Haniwa
提出日時 2025-12-17 21:29:03
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 188 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 13,106 ms
コンパイル使用メモリ 399,636 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-12-17 21:29:18
合計ジャッジ時間 12,524 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `n`
 --> src/main.rs:5:3
  |
5 |         n: usize,
  |         ^ help: if this is intentional, prefix it with an underscore: `_n`
  |
  = note: `#[warn(unused_variables)]` on by default

ソースコード

diff #
raw source code

use proconio::input;

fn main() {
	input! {
		n: usize,
		s: String,
	}

    let ans = if s.contains("404") {
        "Found"
    } else {
        "NotFound"
    };

	println!("{ans}");
}
0