Submission #1518737


Source Code Expand

current = gets.chomp.split("")
pattern = "WBWBWWBWBWBWWBWBWWBW".split("")

12.times do |i|
  if current == pattern.rotate(i)
    case i
    when 0
      puts "Do"
    when 2
      puts "Re"
    when 4
      puts "Mi"
    when 5
      puts "Fa"
    when 7
      puts "So"
    when 9
      puts "La"
    when 11
      puts "Si"
    end
    break
  end
end

Submission Info

Submission Time
Task C - ピアニスト高橋君
User ayataka555
Language Ruby (2.3.3)
Score 0
Code Size 378 Byte
Status WA
Exec Time 7 ms
Memory 1788 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
AC × 2
WA × 6
Set Name Test Cases
Sample example_0.txt
All example_0.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, handmade_6.txt
Case Name Status Exec Time Memory
example_0.txt AC 7 ms 1788 KB
handmade_0.txt AC 7 ms 1788 KB
handmade_1.txt WA 7 ms 1788 KB
handmade_2.txt WA 7 ms 1788 KB
handmade_3.txt WA 7 ms 1788 KB
handmade_4.txt WA 7 ms 1788 KB
handmade_5.txt WA 7 ms 1788 KB
handmade_6.txt WA 7 ms 1788 KB