結果

問題 No.739 大事なことなので2度言います
ユーザー phspls
提出日時 2022-12-04 17:04:33
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 14,326 ms
コンパイル使用メモリ 379,204 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 19:52:18
合計ジャッジ時間 13,615 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    let s = s.trim();

    if s.to_string() == (&s[0..s.len()/2]).repeat(2) {
        println!("YES");
    } else {
        println!("NO");
    }
}
0