竞赛
考级
2025-11-27 19:49:45 C++ 代码:
#include<bits/stdc++.h>//submitRecord// using namespace std; //const int N=1e7+10; int main(){ //freopen("","r",stdin); //freopen("","w",stdout); ios::sync_with_stdio(); cin.tie(nullptr); cout.tie(nullptr); string n; cin>>n; if(n=="y") cout<<"Yes"; else if(n=="Y") cout<<"Yes"; else cout<<"No"; //fclose(stdin); //fclose(stdout); return 0; }
这个代码堪称除了代码就剩下代码了,好评
依旧来炸鱼了 也是肥肠煎蛋好吧
这道题简简单单,但题解是畸形的。。。 有用的话,就点个赞吧!
EASY~
#include<bits/stdc++.h> using namespace std; char y; int main(){ cin >> y; if(y=='Y'){ cout << "Yes"; } if(y=='y'){ cout << "Yes"; } if(y=='n'){ cout << "No"; } if(y=='N'){ cout << "No"; } return 0; }
a=str(input()) if a=="y": print("Yes") if a=="Y": print("Yes") if a=="n": print("No") if a=="N": print("No")
#include <iostream> using namespace std; int main(){ char a; cin>>a; if(a=='y'||a=='Y'){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }
#include <iostream> using namespace std; int main(){ char ch; cin >> ch; switch(ch) { case 'y': case 'Y': cout << "Yes"; break; case 'n': case 'N': cout << "No"; break; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c=='Y'|| c=='y'){ cout << "Yes"; }else{ cout << "No"; } }
#include<iostream> using namespace std; int main(){ char a; cin>>a; if(a=='Y'||a=='y'){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }
共33条
提交答案之后,这里将显示提交结果~