#32811: ans


yp11151049@yphs.tp.edu.tw (801-24)

學校 : 臺北市私立延平高級中學
編號 : 197224
來源 : [203.72.178.1]
最後登入時間 :
2024-01-16 09:26:24
d511. 小明的作業 -- 板橋高中教學題 | From: [203.72.178.1] | 發表日期 : 2022-11-09 17:08

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    int ans=0;
    for(int i=1;i<=5;i++){
        cin>>a>>b>>c;
        if(a+b>c && a+c>b && c+b>a) ans++;
    }
    cout<<ans<<endl;
}

 
ZeroJudge Forum