結果
| 問題 | No.543 命題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-08 11:46:36 |
| 言語 | Rust (1.93.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 444 bytes |
| 記録 | |
| コンパイル時間 | 1,035 ms |
| コンパイル使用メモリ | 196,668 KB |
| 実行使用メモリ | 7,840 KB |
| 最終ジャッジ日時 | 2026-02-08 11:46:39 |
| 合計ジャッジ時間 | 2,352 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
fn main() {
let stdin = std::io::read_to_string(std::io::stdin()).unwrap();
let mut stdin = stdin.split_ascii_whitespace();
let a: char = stdin.next().unwrap().parse().unwrap();
let b: char = stdin.next().unwrap().parse().unwrap();
println!("{}", output(solve(a, b)));
}
fn solve(a: char, b: char) -> (char, char) {
(b, a)
}
fn output((x, y): (char, char)) -> String {
String::from(x) + " " + &String::from(y)
}