結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-11-19 00:12:17 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 424 bytes |
| コンパイル時間 | 15,518 ms |
| コンパイル使用メモリ | 386,660 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 04:30:10 |
| 合計ジャッジ時間 | 14,367 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
use std::io::{self, BufRead};
fn main() {
let input = io::stdin()
.lock()
.lines()
.map(std::result::Result::unwrap)
.collect::<Vec<_>>();
let mut s1 = input[0].chars().collect::<Vec<_>>();
s1.sort_unstable();
let mut s2 = input[1].chars().collect::<Vec<_>>();
s2.sort_unstable();
if s1 == s2 {
println!("YES");
} else {
println!("NO");
}
}
cra77756176