結果

問題 No.2201 p@$$w0rd
コンテスト
ユーザー
提出日時 2024-07-13 23:56:07
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 293 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 492 ms
コンパイル使用メモリ 181,116 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2026-03-30 15:39:30
合計ジャッジ時間 1,403 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).ok();
	let (mut w, mut d, mut o) = (0, 0, 1);
	for c in s.trim().chars() {
		match c {
			'a' | 's' => w += 1,
			'l' | 'o' => d += 1,
			_ => o = 0,
		}
	}
	println!("{}", (2u8.pow(w) - 1) * (2u8.pow(d) - 1) - o);
}
0