結果
問題 | No.1735 C# |
ユーザー |
![]() |
提出日時 | 2021-11-13 18:33:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 522 bytes |
コンパイル時間 | 275 ms |
コンパイル使用メモリ | 41,984 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 17:25:12 |
合計ジャッジ時間 | 892 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
/* -*- coding: utf-8 -*- * * 1735.cc: No.1735 C# - yukicoder */ #include<cstdio> #include<cstring> #include<algorithm> using namespace std; /* constant */ const int N = 12; const char nts[N + 1][4] = { "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C" }; /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { char s[4]; scanf("%s", s); for (int i = 0; i < N; i++) if (strcmp(s, nts[i]) == 0) { puts(nts[i + 1]); break; } return 0; }