#40684: 解題報告


gwjh112086 (gwjh112086)

School : No School
ID : 271933
IP address : [163.19.106.163]
Last Login :
2024-06-19 16:23:40
d511. 小明的作業 -- 板橋高中教學題 | From: [163.19.106.163] | Post Date : 2024-06-05 16:22

這是這題的解答

#include <iostream>
using namespace std;
 
int main() {
int a,b,c;
int total=0;
while(cin>>a>>b>>c){
if((a+b)>c and (a+c)>b and (b+c)>a) total++;
}
cout<<total<<endl;
}
就是這樣
 
 
ZeroJudge Forum