結果

問題 No.2312 Turtleman and Gaming Console
ユーザー
提出日時 2024-07-17 13:51:15
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 12,127 ms
コンパイル使用メモリ 406,928 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-17 13:51:36
合計ジャッジ時間 13,684 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

fn g() -> Vec<char> {
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).ok();
	s.trim().chars().collect()
}
fn main() {
	g();
	println!(
		"{}",
		if g()
			.iter()
			.zip(g().iter())
			.any(|(&a, &b)| a == 'o' && a == b)
		{
			"Lucky Turtleman"
		} else {
			"Unlucky Turtleman"
		}
	)
}
0