#include\x20 #include\x20 #include\x20 #include\x20

using\x20namespace\x20std;

int\x20main()\x20{ \x20\x20int\x20n; \x20\x20cin\x20>>\x20n;

\x20\x20vector\x20scores(n); \x20\x20for\x20(int\x20i\x20=\x200;\x20i\x20<\x20n;\x20i++)\x20{ \x20\x20\x20\x20cin\x20>>\x20scores[i]; \x20\x20}

\x20\x20sort(scores.begin(),\x20scores.end());

\x20\x20for\x20(int\x20i\x20=\x200;\x20i\x20<\x20n;\x20i++)\x20{ \x20\x20\x20\x20cout\x20<<\x20fixed\x20<<\x20setprecision(1)\x20<<\x20scores[i]\x20<<\x20"\x20"; \x20\x20}

\x20\x20return\x200; }

C++ 智能成绩排名系统 - 按总成绩排序

原文地址: https://www.cveoy.top/t/topic/pCIR 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录