#2327592

Solution for 0032: Plastic Board by WatsonHeim

Source Code Status Test Cases
    Policy: public     Reviewed: 3    
00.00 sec    0 KB    36 lines     978 bytes    2017-05-20 03:36
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 int cin(){return int.Parse(Console.ReadLine());}
        public static int[] cins(){
            string[] ss=Console.ReadLine().Split(',');
            var res=new int[ss.Length];
            for(int i=0;i<ss.Length;i++)
                res[i]=int.Parse(ss[i]);                
            return res;            
        }
        
        public static void Main(){
            int[] I;
            int Rect=0,Equi=0;
            while(true){
                I=cins();
                if(I.Length==0)break;
                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: 0/1 C# CPU: 00.00 sec Memory: 0 KB Length: 978 B 2017-05-20 03:36 2017-05-20 03:36
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Runtime Error - -
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags