結果
| 問題 |
No.717 ファッションへのこだわり
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-24 19:20:07 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 392 bytes |
| コンパイル時間 | 10,272 ms |
| コンパイル使用メモリ | 400,748 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 05:34:57 |
| 合計ジャッジ時間 | 11,110 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
fn main() {
let mut xx = String::new();
std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
let xx: Vec<&str> = xx.split_whitespace().skip(2).collect();
let (a_s, a_t) = (xx[0].matches('A').count(), xx[1].matches('A').count());
let (b_s, b_t) = (xx[0].matches('B').count(), xx[1].matches('B').count());
println!("{}", a_s.min(a_t) + b_s.min(b_t));
}
cra77756176