結果

問題 No.446 ゆきこーだーの雨と雪 (1)
コンテスト
ユーザー ⁣
提出日時 2024-05-24 13:24:47
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 808µs
コード長 320 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 745 ms
コンパイル使用メモリ 176,736 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2026-10-11 23:58:45
合計ジャッジ時間 1,955 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io::Read;

fn main() {
	let mut s = String::new();
	std::io::stdin().read_to_string(&mut s).unwrap();
	let s = s.split_whitespace();
	let a = s
		.filter(|s| s.len() == 1 || &s[..1] != "0")
		.flat_map(str::parse::<u16>)
		.filter(|&x| x < 12346)
		.count() == 2;
	println!("{}", if a { "OK" } else { "NG" })
}
0