結果
問題 |
No.1735 C#
|
ユーザー |
![]() |
提出日時 | 2021-11-17 21:35:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 1,210 ms |
コンパイル使用メモリ | 159,248 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 03:59:27 |
合計ジャッジ時間 | 1,728 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; string up(string x) { if (x == "C") return "C#"; if (x == "D") return "D#"; if (x == "E") return "F"; if (x == "F") return "F#"; if (x == "G") return "G#"; if (x == "A") return "A#"; if (x == "B") return "C"; return ""; } int main() { string s; cin >> s; cout << up(s) << endl; return 0; }