結果

問題 No.494 yukicoder
ユーザー Haniwa
提出日時 2025-10-16 21:37:30
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 11,820 ms
コンパイル使用メモリ 400,224 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-16 21:37:43
合計ジャッジ時間 13,080 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

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

	let chars: Vec<char> = "yukicoder".chars().collect();

    let ans = chars[s.chars().position(|c| c == '?').unwrap()];

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