2119 - P452 1-4

P452 1-4

题目输入

该程序主要看大家的程序风格,只需按照题意完成代码创建变量即可,无输入

题目输出

为了方便判断,输出整数1方便判断

输入/输出样例

题目输入

no input needed

题目输出

1

C++解答

#include <iostream>
#include <string>
enum Category{rock,pop,blue,jazz,metal};
using namespace std;
struct Time
{
	int minutes;
	int seconds;
};
struct Song
{
	string title;
	string album;
	string artist;
	Time playingTime;
	Category category;
};
Song mySong;
int main()
{

	mySong.playingTime.minutes=6;
	mySong.playingTime.seconds=54;
	mySong.title="Halo";
	mySong.album="Underground X";
	mySong.artist="Linkin Park";
	mySong.category=metal;
	cout<<1<<endl;
	return 0;
}
时间限制 1 秒
内存限制 128 MB
讨论 统计
上一题 下一题