#2327595

Solution for 0032: Plastic Board by WatsonHeim

Source Code Status Test Cases
    Policy: public     Reviewed: 3    
00.01 sec    9108 KB    36 lines     888 bytes    2017-05-20 03:39
using System;
using System.Collections.Generic;
using System.Linq;


namespace Library
{
    public class Miscelleneous
    {
        public static void print(object j){Console.WriteLine(j.ToString());}
        public static void print(string s){Console.WriteLine(s);}
        
        
        public static void Main(){
            int[] I;
            string[] ss;
            string s;
            int Rect=0,Equi=0;
            while(true){
                s=Console.ReadLine();
                if(string.IsNullOrEmpty(s))break;
                ss=s.Split(',');
                I=new int[ss.Length];
                for(int i=0;i<ss.Length;i++)
                    I[i]=int.Parse(ss[i]);
                
                if(I[2]*I[2]-I[0]*I[0]==I[1]*I[1])Rect++;
                if(I[0]==I[1])Equi++;
            }
            print(Rect);
            print(Equi);
        }
    }
}


Compile Error Logs:
You are not authorized to see the message.

Status
Judge: 1/1 C# CPU: 00.01 sec Memory: 9108 KB Length: 888 B 2017-05-20 03:39 2017-05-20 03:39
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Accepted 00.01 sec 9108 KB
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags