分享1首音乐
2023-07-20 20:05:37
发布于:浙江
#include<bits/stdc++.h>
#include<windows.h>
#define qqdo 131
#define qqre 147
#define qqmi 165
#define qqfa 175
#define qqso 196
#define qqla 220
#define qqsi 247
#define qdo 262
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define do2 1569
#define re2 1734
#define mi2 1997
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865//前缀s为半音,后缀1,2为高音,前缀q,qq为低音
int main(){
int jz=500;//标准节拍,可以通过更改这个变量大小改变全曲节拍。
Beep(qla,jz/4);
Beep(qla,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sqre,jz/4);
Sleep(jz/4);
Beep(sqre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//1
Beep(qso,jz/4);
Beep(qso,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//2
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/2);
Beep(re,jz/2);
//3
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//4
Beep(qla,jz/4);
Beep(qla,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sqre,jz/4);
Sleep(jz/4);
Beep(sqre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//5
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//6
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/2);
Beep(re,jz/2);
//7
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//8
while(1){
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//9
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//10
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/2);
Beep(re,jz/2);
//11
Beep(qfa,jz/4);
Beep(qfa,jz/4);
Beep(la,jz/2);
Beep(mi,jz/21.5);
Beep(sre,jz/4);
Sleep(jz/4);
Beep(sre,jz/2);
Beep(do,jz/2);
Beep(qla,jz/4);
Beep(do,jz/4);
Beep(re,jz/4);
//12
//下一节高八度
Beep(fa,jz/4);
Beep(fa,jz/4);
Beep(la1,jz/2);
Beep(mi1,jz/21.5);
Beep(sre1,jz/4);
Sleep(jz/4);
Beep(sre1,jz/2);
Beep(do1,jz/2);
Beep(la,jz/4);
Beep(do1,jz/4);
Beep(re1,jz/4);
//13
Beep(fa,jz/4);
Beep(fa,jz/4);
Beep(la1,jz/2);
Beep(mi1,jz/21.5);
Beep(sre1,jz/4);
Sleep(jz/4);
Beep(sre1,jz/2);
Beep(do1,jz/2);
Beep(la,jz/4);
Beep(do1,jz/4);
Beep(re1,jz/4);
//14
Beep(fa,jz/4);
Beep(fa,jz/4);
Beep(la1,jz/2);
Beep(mi1,jz/21.5);
Beep(sre1,jz/4);
Sleep(jz/4);
Beep(sre1,jz/2);
Beep(do1,jz/2);
Beep(la,jz/4);
Beep(do1,jz/2);
Beep(re1,jz/2);
//15
Beep(fa,jz/4);
Beep(fa,jz/4);
Beep(la1,jz/2);
Beep(mi1,jz/21.5);
Beep(sre1,jz/4);
Sleep(jz/4);
Beep(sre1,jz/2);
Beep(do1,jz/2);
Beep(la,jz/4);
Beep(do1,jz/4);
Beep(re1,jz/4);
}
}
全部评论 1
#include<bits/stdc++.h>
#include <iostream>
#include <windows.h>
#include <winable.h>
#include <ctime>
#include <cstdio>
using namespace std;
int n,boon;
int main(){
cin>>n;
char a[n+1][n+1];
char2023-07-22 来自 浙江
0
有帮助,赞一个