竞赛
考级
#include<iostream> using namespace std; int main(){ int n; cin >> n; if(n1){ cout << "Monday"; }else if(n2){ cout << "Tuesday"; }else if(n3){ cout << "Wednesday"; }else if(n4){ cout << "Thursday"; }else if(n5){ cout << "Friday"; }else if(n6){ cout << "Saturday"; }else{ cout << "Sunday"; } return 0; }
@辞$
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a1) { cout<<"Monday"; } if(a2) { cout<<"Tuesday"; } if(a3) { cout<<"Wednesday"; } if(a4) { cout<<"Thursday"; } if(a5) { cout<<"Friday"; } if(a6) { cout<<"Saturday"; } if(a==7) { cout<<"Sunday"; } return 0; }
邹立轩
很简单,不过有点肝!
星舰
#include <iostream> #include <cstdio> using namespace std; int main() { int n; cin>>n; if(n1) { cout<<"Monday"; } else if(n2) { cout<<"Tuesday"; } else if(n3) { cout<<"Wednesday"; } else if(n4) { cout<<"Thursday"; } else if(n5) { cout<<"Friday"; } else if(n6) { cout<<"Saturday"; } else if(n==7) { cout<<"Sunday"; } }
159****1573
#include<bits/stdc++.h> using namespace std; string a[10]={"占位符","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"}; int n; int main(){ cin>>n; cout<<a[n]; return 0; }
胡雨轩
//#include<iostream> #include<cstdio> //#include<algorithm> //#include<cmath> //#include<string.h> using namespace std; int main() { int n; scanf("%d",&n); switch(n){ case 1: printf("Monday"); break; case 2: printf("Tuesday"); break; case 3: printf("Wednesday"); break; case 4: printf("Thursday"); break; case 5: printf("Friday"); break; case 6: printf("Saturday"); break; default: printf("Sunday"); } return 0; }
CuSO4
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n1){ cout<<"Monday"; }else if(n2){ cout<<"Tuesday"; }else if(n3){ cout<<"Wednesday"; }else if(n4){ cout<<"Thursday"; }else if(n5){ cout<<"Friday"; }else if(n6){ cout<<"Saturday"; }else if(n==7){ cout<<"Sunday"; } return 0; }
小火车TT
庞文昊
switch是个好东西
聪明的人类📬📬📬
#include <iostream> using namespace std; int main(){ int n; cin>>n; switch(n){ case 1:cout<<"Monday";break; case 2:cout<<"Tuesday";break; case 3:cout<<"Wednesday";break; case 4:cout<<"Thursday";break; case 5:cout<<"Friday";break; case 6:cout<<"Saturday";break; default:cout<<"Sunday";break; } return 0; }
ac狗
135****2872
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a1) cout<<"Monday"; else if(a2) cout<<"Tuesday"; else if(a3) cout<<"Wednesday"; else if(a4) cout<<"Thursday"; else if(a5) cout<<"Friday"; else if(a6) cout<<"Saturday"; else cout<<"Sunday"; }
一只有梦想的咸鱼
潜龙暗虎
别来下蛋
zsy
#include<iostream> using namespace std; int main(){ int n; cin>>n; switch(n){ case 1:cout<<"Monday"<<endl;break; case 2:cout<<"Tuesday"<<endl;break; case 3:cout<<"Wednesday"<<endl;break; case 4:cout<<"Thursday"<<endl;break; case 5:cout<<"Friday "<<endl;break; case 6:cout<<"Saturday "<<endl;break; case 7:cout<<"Sunday "<<endl;break; default:cout<<"input error"<<endl; return 0; } }
猫四月
6.
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a1){ cout<<"Monday"; } else if(a2){ cout<<"Tuesday"; } else if(a3){ cout<<"Wednesday"; } else if(a4){ cout<<"Thursday"; } else if(a5){ cout<<"Friday"; } else if(a6){ cout<<"Saturday"; } else{ cout<<"Sunday"; } return 0; }
闯思得
༺ཌༀTN黑客ༀད༻
_1943
共45条