結果

問題 No.1735 C#
ユーザー 小野寺健小野寺健
提出日時 2021-12-01 15:54:26
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 11,408 KB
実行使用メモリ 15,256 KB
最終ジャッジ日時 2023-09-17 21:54:32
合計ジャッジ時間 2,459 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,144 KB
testcase_01 AC 83 ms
15,064 KB
testcase_02 AC 81 ms
15,120 KB
testcase_03 AC 80 ms
15,188 KB
testcase_04 AC 79 ms
15,108 KB
testcase_05 AC 80 ms
15,256 KB
testcase_06 AC 84 ms
15,096 KB
testcase_07 AC 80 ms
15,112 KB
testcase_08 AC 80 ms
15,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

scale = ["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"]

S = gets.strip

puts scale[(scale.index(S) + 1) % scale.length]
0