水题
西杭
温水煮了将军梦
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
高级机密
每天做几个水题,真的是感觉其乐无穷啊#include #include #include #include using namespace std; int main() { ios::sync_with_stdio(false); int a, b, c; cin>>a>>b>>c; int n=a; for(int i=1;i<b;i++)原创 2016-07-30 21:01:59 · 776 阅读 · 0 评论 -
C语言实验——求两个整数之和(python)
C语言实验——求两个整数之和 Time Limit: 1000MS Memory Limit: 65536KB Submit Statistic Problem Description 求两个整数之和,不从键盘输入数据,直接使用赋值语句(a=123;b=456)输入数据,然后计算两个整数之和输出。 Input 无输入数据。 Output 输出a和b之原创 2016-10-05 22:57:52 · 3213 阅读 · 0 评论 -
n a^o7 !
遇到了非常华丽的一个题面,吓得我一脸懵逼不知从何入手。上网搜了一下题解,发现简直了。 题目链接 #include #include #include int main() { int n,i,k; char st[100]; scanf("%d%*c",&n); for(k=1;k<=n;k++) { //getchar();原创 2016-08-19 14:49:24 · 1260 阅读 · 0 评论 -
数据结构实验之数组三:快速转置
题目链接 又来交水题了 #include #include using namespace std; typedef struct node { int x,y,z; }Arry; int cmp(Arry a, Arry b) { if(a.y==b.y) return a.x<b.x; return a.y<b.y; } int main原创 2016-08-07 20:22:31 · 586 阅读 · 0 评论 -
数据结构实验之数组二:稀疏矩阵
又水了一道题 题目链接 #include #include using namespace std; typedef struct { int x,y,z; }Arry; int main() { ios::sync_with_stdio(false); int n, m, j; int mu, tu, nu, key; Arry A[100原创 2016-08-07 20:15:27 · 839 阅读 · 4 评论 -
骄傲的代价
只想做个水题,没想到碰到了大数据模拟,真尼玛惨 题目链接 #include #include #include using namespace std;///大数据模拟 int main() { ios::sync_with_stdio(false); int T; string a, b; int c[100100]; while(cin>>T原创 2016-08-05 21:40:05 · 655 阅读 · 0 评论 -
小鑫の日常系列故事(五)——卡片游戏
又做水题一道 题目链接 #include #include #include using namespace std; const int maxn=100000+1000; int a[maxn], b[maxn]; int main() { int n, p=0, q=0, sum1=0, sum2=0; cin>>n; for(int i=1;i<=n;i原创 2016-08-05 19:14:42 · 1097 阅读 · 0 评论 -
串结构练习——字符串连接
题目链接 #include #include #include using namespace std; int main() { string a, b; while(cin>>a>>b) { cout<<a+b<<endl; } return 0; }原创 2016-08-04 14:16:09 · 519 阅读 · 0 评论 -
老--质价比(直接sort排序)
老--质价比 Time Limit: 1000MS Memory Limit: 65536KB Submit Statistic Problem Description 给出n件物品,每件物品有质量和价格两种属性。你要做的是按质量升序排序,若质量相同则按价格降序排序。 Input 多组输入。每组先输入一个正整数n(1 Output 对于每组数据输出n原创 2017-03-23 13:32:17 · 1015 阅读 · 0 评论
分享