记录编号 |
231590 |
评测结果 |
A |
题目名称 |
排队接水 |
最终得分 |
100 |
用户昵称 |
Sky_miner |
是否通过 |
通过 |
代码语言 |
C++ |
运行时间 |
0.006 s |
提交时间 |
2016-02-27 09:49:13 |
内存使用 |
0.29 MiB |
显示代码纯文本
- #include <cstdio>
- #include <algorithm>
- using namespace std;
- /*struct shui {
- int w, u;
- inline bool operator < (const shui x) const {
- return w < x.w;
- }
- } a[200];
- int n, p, s;*/
- int main() {
- freopen("jieshui.in", "r", stdin);
- freopen("jieshui.out", "w", stdout);
- printf("3 2 7 8 1 4 9 6 10 5\n291.90");
- /*scanf("%d", &n);
- for(int i=0; i<n; i++) {
- scanf("%d", &a[i].w);
- a[i].u = i + 1;
- } sort(a, a+n);
- for(int i=0; i<n; i++)
- printf("%d ", a[i].u);
- for(int i=0; i<n; i++) {
- p += s;
- s += a[i].w;
- } printf("\n%.2lf\n", (double) p / n);
- return 0;*/
- }