cf 5.25A- Eshag Loves Big Arrays
这个代码是错误的一开始我的思路是用sort排一下序列,然后通过数组前面和后面一样来直接计数,这个直接计算让工程量比较大,没有细分成最小的点。并且这个代码虽然过了输出但是不对。#include<bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; int b; int c[105]; int d[105];//复制i相同的 int f = 1;//灯来判
原创
2021-05-25 14:45:12 ·
168 阅读 ·
1 评论