63 条题解

  • 0
    @ 2026-7-20 19:15:41
    #include <bits/stdc++.h>
    using namespace std;
    int n , a , b , c , s , j , ans;
    int main()
    {
        cin >> n;
        for ( int i = 1; i <= n; i++ )
        {
            cin >> a >> b >> c;
            s = a + b + c;
            if (j < s )
            {
            	ans++;
    		}
            j = s;   
    	} 
    	cout << ans - 1;
    	return 0;
    }
    
    

    信息

    ID
    1
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    递交数
    5258
    已通过
    1484
    上传者