Submission #1243821


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Program {
    static void Main(string[] args) {
        new Calc().Solve();
        return;
    }

    public class Calc {
        public void Solve() {
			string S = ReadLine<string>();
			int first = S.IndexOf("WWBWBWBW");
			string[] onp = new string[12] { "Mi", "Re", "Re", "Do", "Do", "Si", "La", "La", "So", "So", "Fa", "Fa" };
			onp[first % 12].WL();
		}
    }
	

    public static T[] ReadLine<T>(params char[] separators) {
        return Console.ReadLine()
            .Split(separators)
            .Where(_ => _.Length > 0)
            .Select(_ => (T)Convert.ChangeType(_, typeof(T)))
            .ToArray();
    }
	public static T ReadLine<T>() {
		return (T)Convert.ChangeType(Console.ReadLine(), typeof(T));
	}
    public static List<T> ReadLines<T>(int N) {
        List<T> rt = new List<T>();
        for (int i = 0; i < N; i++) {
            T item = (T)Convert.ChangeType(Console.ReadLine(), typeof(T));
            rt.Add(item);
        }
        return rt;
    }
}
public static class Utils {
    public static void WL(this object obj) {
        Console.WriteLine(obj);
    }
	public static string Docking<T>(this IEnumerable<T> collection,Func<T,string> filter = null) {
		StringBuilder sb = new StringBuilder();
		foreach (var item in collection) {
			string str = filter != null ? filter(item) : item.ToString();
			sb.Append(str);
		}
		return sb.ToString();
	}
	public static string RangeDocking<T>(this IEnumerable<T> collection,
		int start,int end,Func<T,string> filter = null) {
		if (start > collection.Count()) throw new IndexOutOfRangeException();
		if (end < 0) throw new IndexOutOfRangeException();
		StringBuilder sb = new StringBuilder();
		for (int i = start; i < end; i++) {
			string str = filter != null ? filter(collection.ElementAt(i)) : collection.ElementAt(i).ToString();
			sb.Append(str);
		}
		return sb.ToString();
	}
	public static void WriteLineAll<T>(this IEnumerable<T> collection) {
		foreach (var item in collection) {
			item.WL();
		}
	}
}

Submission Info

Submission Time
Task C - ピアニスト高橋君
User xztaityozx
Language C# (Mono 4.6.2.0)
Score 100
Code Size 2161 Byte
Status AC
Exec Time 25 ms
Memory 13524 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 1
AC × 8
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 24 ms 11360 KB
handmade_0.txt AC 24 ms 9312 KB
handmade_1.txt AC 24 ms 11360 KB
handmade_2.txt AC 24 ms 11360 KB
handmade_3.txt AC 24 ms 9428 KB
handmade_4.txt AC 24 ms 9312 KB
handmade_5.txt AC 24 ms 11360 KB
handmade_6.txt AC 25 ms 13524 KB