1 条题解

  • 0
    @ 2025-4-12 22:06:17

    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;
    }
    

    Pascal :

    begin
      write(1);
    end.
    
    • 1

    信息

    ID
    2814
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者