摘要:
A.Helpful Maths分析:将读入的字符转化为数字,直接排个序就可以了。#include #include #include #include using namespace std;const int N = 500;int seq[N];int main() { char c; int t = 0, idx = 0; while ((c = getchar()) != EOF) { if (c == '+' || c == '\n') { seq[idx++] = t; t = 0; } ... 阅读全文