摘要:
从大到小排好序直接把每三个的最后一个加起来... 1 #include 2 3 using namespace std; 4 5 int a[20005]; 6 7 bool cmp(int a, int b) 8 { 9 return a > b;10 }11 12 int mai... 阅读全文
摘要:
水水,注意等于的情况和输出格式... 1 #include 2 3 using namespace std; 4 5 int w[5]; 6 int r[5]; 7 8 int main() 9 {10 int n;11 int count=0;12 while(ci... 阅读全文