class members


Submit solution

Points: 50 (partial)
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem type

題目說明

班級名單如下:(請貼入程式碼)

String [] member = {"Alice", "Bob", "Chelsea", "Donald", "Emma", "Flora", "Grace", "Howard", "Ingrid", "Jack", "Ken", "Leo", "Max", "Nick", "Oscar", "Pamela", "Quanna", "Rachel", "Sarah", "Tom", "Ursula", "Vincent", "Walter", "Xavier", "Yasmin", "Zenith"};

輸入一個名字,請輸出他的座號(座號照順序,由1~26)

若班級無此成員請輸出-1

輸入

名字

輸出

座號 (或-1)

sample input1

Bob

sample output1

2

sample input2

Makena

sample output2

-1

Comments

There are no comments at the moment.