徐子宸
Wrong Answer:90分
徐子宸的测评结果:
测试点
结果
时间
1
Accepted
0ms
偷看一下数据
2
Accepted
0ms
偷看一下数据
3
Accepted
0ms
偷看一下数据
4
Accepted
0ms
偷看一下数据
5
Accepted
0ms
偷看一下数据
6
Accepted
0ms
偷看一下数据
7
Wrong Answer
0ms
偷看一下数据
8
Accepted
0ms
偷看一下数据
9
Accepted
0ms
偷看一下数据
10
Accepted
0ms
偷看一下数据
测试点#7(只能看一眼哦~)
输入(显示前50行):
94 94 60 94 54 34 68 6 81 39 30 66 3 49 100 77 19 83 7 65 92 41 44 79 13 9 37 83 9 26 9 6 29 63 9 29 60 56 18 32 85 89 52 95 80 16 83 98 12 64 15 4 29 29 9 27 73 76 47 53 90 28 97 87 83 26 61 50 92 33 10 97 50 25 60 27 35 33 26 76 18 43 44 15 84 62 20 87 46 88 95 60 16 8 1 21
输出(显示前50行):
94x^94+60x^93+94x^92+54x^91+34x^90+68x^89+6x^88+81x^87+39x^86+30x^85+66x^84+3x^83+49x^82+100x^81+77x^80+19x^79+83x^78+7x^77+65x^76+92x^75+41x^74+44x^73+79x^72+13x^71+9x^70+37x^69+83x^68+9x^67+26x^66+9x^65+6x^64+29x^63+63x^62+9x^61+29x^60+60x^59+56x^58+18x^57+32x^56+85x^55+89x^54+52x^53+95x^52+80x^51+16x^50+83x^49+98x^48+12x^47+64x^46+15x^45+4x^44+29x^43+29x^42+9x^41+27x^40+73x^39+76x^38+47x^37+53x^36+90x^35+28x^34+97x^33+87x^32+83x^31+26x^30+61x^29+50x^28+92x^27+33x^26+10x^25+97x^24+50x^23+25x^22+60x^21+27x^20+35x^19+33x^18+26x^17+76x^16+18x^15+43x^14+44x^13+15x^12+84x^11+62x^10+20x^9+87x^8+46x^7+88x^6+95x^5+60x^4+16x^3+8x^2+x+21
我的提交(cpp):
#include<iostream>#include<string>#include<algorithm>#include<cstdio>using namespace std;int a[105];int main(){int n;cin>>n;for(int i=n;i>=0;i--){cin>>a[i];}for(int i=n;i>=0;i--){if(i==0){cout<<a[i];break;}if(i==1){cout<<a[i]<<'x'<<"+";continue;}if(a[i]>1)cout<<a[i]<<'x'<<'^'<<i<<'+';if(a[i]==1)cout<<'x'<<'^'<<i<<'+';if(a[i]==0)cout<<a[i]<<'x'<<'^'<<i<<'+';}return 0;}
徐子宸在2020-05-12 21:11:29追加了内容
哪错了
