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