- 博客(7)
- 收藏
- 关注
原创 CCF 201503-2 数字排序 100分
#include <iostream> #include <algorithm> using namespace std; struct number { int order;//序号 int num;//对应出现次数 }; number n[1005]; //多级排序 bool compare(number a,number b) { if(a.num>b....
2020-03-03 16:22:54 91
原创 CCF 201512-2 消除类游戏 100分
#include <iostream> using namespace std; int main() { int x,y; cin>>x>>y; int map[x][y]; bool flag[x][y]; //padding int temp[x+2][y+2]; for(int i=0;i<x;i++) for(int j=0...
2020-03-03 16:20:31 128 1
原创 CCF 201604-2 俄罗斯方块 100分
#include <iostream> using namespace std; //定义方块 struct cube { int x; int y; }; int main() { cube c[4]; int map[15][10],blk[4][4],left,temp=0; //初始化 for(int i=0;i<15;i++) for(int j=0...
2020-03-03 16:14:24 181
原创 CCF 201609-2 火车购票 100分
#include <iostream> using namespace std; int seat[21]; int main() { for(int i=1;i<=20;i++) seat[i]=5; int order; cin>>order; int all[order]; for(int i=0;i<order;i++) { cin&...
2020-02-28 11:51:50 155
原创 CCF 201709-2 公共钥匙盒 100分
#include <iostream> #include <algorithm> #include <queue> #include <vector> using namespace std; struct teacher { int start; int end; int key; }; bool struct_compare(teach...
2020-02-27 17:05:10 132
原创 CCF 201803-2 碰撞的小球 100分
#include <iostream> #include <algorithm> using namespace std; struct Ball { int order;//存储原顺序 int loc;//存储位置 int v;//存储当前速度 }; //按位置升序 bool struct_compare1(Ball a,Ball b) { return a...
2020-02-27 00:08:41 113
原创 CCF 201903-2 二十四点 100分
#include <iostream> #include <string> #include <vector> #include <cstring> using namespace std; /* 10 9+3+4x3 5+4x5x5 7-9-9+8 5x6/5x4 3+5+7+9 1x1+9-9 1x9-5/9 8/5+6x9 6x7-3x6 ...
2020-02-25 18:50:49 203
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人