結果
| 問題 | 
                            No.2322 MMA文字列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ixTL255
                         | 
                    
| 提出日時 | 2023-05-30 21:47:57 | 
| 言語 | Rust  (1.83.0 + proconio)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 241 bytes | 
| コンパイル時間 | 13,426 ms | 
| コンパイル使用メモリ | 401,232 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-28 13:06:11 | 
| 合計ジャッジ時間 | 14,758 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 | 
ソースコード
fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    let s = s.trim().chars().collect::<Vec<char>>();
    println!("{}",
        if s[0] == s[1] && s[0] != s[2] { "Yes" }
        else { "No" }
    );
}
            
            
            
        
            
ixTL255