1023. 组个最小数 (20)
来源:互联网 发布:推荐淘宝高达店 编辑:程序博客网 时间:2024/05/22 12:43
水~
// 2017/10/14 NCU // PAT-B 1053// scienceZ#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>using namespace std;int arr[20];int main(){ for (int i = 0; i<10; i++) cin >> arr[i]; for (int i = 1; i<10; i++) if (arr[i]){ cout << i; arr[i]--; break; } for (int i = 0; i<10; i++) { while(arr[i]){ cout << i; arr[i]--; } } cout << endl; return 0;}
阅读全文
0 0
- PAT 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- PAT 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 1023. 组个最小数 (20)
- 指针加减法
- 单链表改良
- spark报错
- cookie和session的区别
- 数据库左右(left,right)连接及多表连接(inner)
- 1023. 组个最小数 (20)
- 分享一个双面透明逐渐显示的shader
- mysql:mysql error:Access denied for user 'root'@'localhost' (using password: YES)
- JS弹幕实现
- vi 的使用
- 文章标题4.(4)
- python圣斗士修炼(五):常用的数据结构
- 我在聚宽共享函数一
- java概念的小问题总结(二)