結果
| 問題 | No.1735 C# |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-06 20:13:51 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 785µs | |
| コード長 | 502 bytes |
| 記録 | |
| コンパイル時間 | 3,015 ms |
| コンパイル使用メモリ | 185,676 KB |
| 実行使用メモリ | 9,968 KB |
| 最終ジャッジ日時 | 2026-09-20 16:41:23 |
| 合計ジャッジ時間 | 4,595 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
fn main() {
let mut buf = String::new();
let mut input = {
use std::io::Read;
std::io::stdin().read_to_string(&mut buf).unwrap();
buf.split_whitespace()
};
let s: String = input.next().unwrap().parse().unwrap();
let output = match s.as_str() {
"C" => "C#",
"D" => "D#",
"E" => "F",
"F" => "F#",
"G" => "G#",
"A" => "A#",
"B" => "C",
_ => unreachable!(),
};
println!("{}", output);
}