結果
問題 |
No.2314 Backflip
|
ユーザー |
|
提出日時 | 2024-05-09 10:32:50 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 12,840 ms |
コンパイル使用メモリ | 393,196 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-15 22:38:23 |
合計ジャッジ時間 | 13,753 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let mut s = s.trim().to_string(); let c = s.pop().unwrap(); print!("{}{}", s, if c == '0' { '1' } else { '0' }); }