0
点赞
收藏
分享

微信扫一扫

HDOJ  4245   A Famous Music Comp…

王传学 2022-08-23 阅读 87


题目:​​http://acm.hdu.edu.cn/showproblem.php?pid=4245​​

这是2012年暑假的热身赛第一道题,很悲剧WA了很多遍题目没有读清楚,

下面给的信息都是无用的(很坑....

但是到底还是自己不细心,

#include <iostream>
using namespace std;
int main()
{
string s1,s2,temp;
int n,T=1;
while(cin>>s1>>s2)
{
temp="UNIQUE";
if(s1=="A#")
temp="Bb "+s2;
if(s1=="Bb")
temp="A# "+s2;
if(s1=="C#")
temp="Db "+s2;
if(s1=="Db")
temp="C# "+s2;
if(s1=="D#")
temp="Eb "+s2;
if(s1=="Eb")
temp="D# "+s2;
if(s1=="F#")
temp="Gb "+s2;
if(s1=="Gb")
temp="F# "+s2;
if(s1=="G#")
temp="Ab "+s2;
if(s1=="Ab")
temp="G# "+s2;
cout<<"Case "<<T++<<": "<<temp<<endl;
}
return 0;
}

举报

相关推荐

0 条评论