3 条题解

  • 1
    @ 2025-10-28 13:57:52
    #include <stdio.h>
    #include <iostream>
    using std :: cin;
    int a[1997], i, cnt, ans;;
    int main()
    {
        while(cin >> a[++ i])
        	ans += a[i], cnt ++;
        i = 1;
        while(i < cnt)
        	printf("%d+", a[i ++]);
        printf("%d=%d\n", a[i], ans);
        return 0;
    }
    

    信息

    ID
    1182
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    138
    已通过
    62
    上传者