-
个人简介
"若你困于无风之地,我将奏响高天之歌,风会把你的灵魂带回故里。"——巴巴托斯"我们又见面了” "风向时会转变的。终有一天会吹向更有光亮的方向,从今往后,带着我的祝福,活得更从容一些吧"。——巴巴托斯 "我以前的愿望是去游历整个世界,现在也一样,只不过加上了一个特定的条件——和你一起"——温迪
洛谷题:# P10315 P9228 P8883 P8880
P8881 P8882 P10404自己找(题库)
#include<bits/stdc++.h> using namespace std; struct cg { int xh; string mz; int sx; }a[100]; bool cmp(cg x,cg y) { if(x.sx!=y.sx) return x.sx>y.sx; if(x.xh==y.xh) return x.xh>y.xh; } int main() { int n; cin>>n; for(int i=0;i<n;i++) { cin>>a[i].xh>>a[i].mz>>a[i].sx; } sort(a,a+n,cmp); for(int i=0;i<n;i++) { cout<<a[i].xh<<" "<<a[i].mz<<" "<<a[i].sx<<endl; } return 0; }找题库挺简单的
#include<bits/stdc++.h> using namespace std; bool d(int x) { int t=x; while(t) { if(t%10==5) return 1; else t/=10; } return 0; } int main() { int n,c=0; cin>>n; for(int i=1;i<=n;i++) { if(i%5==0&&d(i)==1) { c++; } } cout<<c; return 0; }游戏开发中...
#include<bits/stdc++.h> using namespace std; int a,b[5],s,z,box; char n; int main() { while(b[1]==0||b[2]==0||b[3]==0||b[4]==0) { cout<<"你好旅行者,开始旅行吧!"<<endl; cout<<"你死了:"<<s<<"次"<<endl; cout<<"1.开始游戏"<<endl; cout<<"2.回答问题"<<endl; cout<<"3.退出游戏"<<endl; cin>>a; if(s>20) { cout<<"这么有毅力的吗?"<<endl<<"或许早该退出了吧?"; cout<<endl<<"获得线索----计数者"<<endl; b[4]==0; } if(a==1) { cout<<"欢迎来到曙光森林,这里危机四伏,还要进入吗?(y/n)"; cin>>n; if(n=='y') { cout<<"走路声..."<<endl<<"是谁!"; cout<<endl<<"一头龙 击杀吗?(1/2)"; a=0; cin>>a; if(a==1) { cout<<" 不好 咚!(龙爪落下...你亖了...)"; } if(a==2) { cout<<"龙吃了你 (你亖了...)"; } else { return 0; } } if(n=='n') { cout<<"胆小鬼"<<endl<<"(你亖了...)嘻嘻"; } else{ return 0; } } if(a==2) { cout<<"欢迎来到曙光城回答几个问题方可升级..."; cout<<"1.简单游戏"<<endl; cout<<"2.困难游戏"<<endl; cout<<"请输入你的选择: "; cin>>z; if(z==1) { cout<<"1+1=?"; cin>>box; if(box==2) { cout<<"错了!才怪"; } else { cout<<"对了?才怪"; } } if(z==2) { cout<<"1+4*9+5-1*999=? 48952"; cin>>box; if(box==48951) { cout<<"错了!才怪"; } else { cout<<"对了?才怪"; } } } if(a==3) { cout<<"想退???死吧!!!!!"<<endl; s++; } } return 0; }嘻嘻
#include<windols.h> using namespace std; int main() { MessageBox(NULL,"猪","TEXT",MB_YESNOCANL); return 0; } -
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework.
题目标签
- 语法周赛
- 3
- T3
- 2
- T2
- 1