結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2022-12-31 23:11:18 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 12,957 ms |
コンパイル使用メモリ | 386,928 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-26 22:49:24 |
合計ジャッジ時間 | 13,425 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let s = s.trim();let s2 = &s[..s.len() / 2];if s.to_string() == s2.repeat(2) {println!("YES");} else {println!("NO");}}