Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
120187 秦浩然 初级冒泡排序 C++ Wrong Answer 1 MS 268 KB 471 2025-05-24 11:46:33

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[101]; int main() { double m=0; for(int i=0;i<5;i++) { cin>>a[i]; m=m+a[i]; } int t=0; for(int i=0;i<5-1;i++) { for(int j=0;j<5-1-i;j++) { if(a[j]<a[j+1]) { int t=a[j]; a[j]=a[j+1]; a[j+1]=t; } } } for(int i=0;i<5;i++) { cout<<a[i]<<" "; } cout<<endl; cout<<m<<endl; printf("%.2f",m*1.0/5); return 0; }


Run Info:

------Input------
100 710844621 832331786 719165900 196251414 131660009 908884938 773348756 457940717 523525398 991592781 145325130 152181633 356807348 124547296 466667263 568830284 629838821 719563125 641301408 247289001 466142664 512035712 231352503 666045769 887982085 680762004 587994079 293993962 774874831 855482273 805733283 810242949 731295960 359665887 337748410 68881324 66792893 700954842 393745265 939295611 564884357 41466353 233100349 42606778 271850312 201468313 470251804 2653269 425701645 165910014 58
------Answer-----
991592781 991238259 952153428 939295611 919789561 908884938 908324289 887982085 875341570 855482273 855324349 832331786 829195974 820125284 812980655 810242949 805733283 786766425 774874831 773348756 731295960 730018810 719563125 719165900 710844621 705550958 700954842 680762004 666045769 653053703 651573367 641301408 629838821 619343867 616946852 595972318 587994079 581267814 568830284 564884357 562081711 551088332 542830708 540235095 535915366 523525398 512035712 487327028 470251804 466667263
------Your output-----
832331786 719165900 710844621 196251414 100 2.45859e+09 491718764.20