Posts

Showing posts from December, 2016

URI 1007

Solution of URI 1007 >>Difference #include<stdio.h>   int main ( ) { int A, B, C, D, DIFERENCA ; scanf ( "%d%d%d%d" , & A, & B, & C, & D ) ; DIFERENCA = ( A * B ) - ( C * D ) ; printf ( "DIFERENCA = %d \n " , DIFERENCA ) ;   return 0 ; }

URI 1006

Solution of URI 1006 >>Average 2 #include < stdio.h >   int main ( ) {   double A, B, C, MEDIA ; scanf ( "%lf%lf%lf" , & A, & B, & C ) ; MEDIA = ( ( A * 2 ) + ( B * 3 ) + ( C * 5 ) ) / 10 ; printf ( "MEDIA = %.1lf \n " , MEDIA ) ;   return 0 ; }

URI 1005

Solution of URI 1005 >>Average 1 #include < stdio.h > int main ( ) { double A, B, MEDIA ; scanf ( "%lf%lf" , & A, & B ) ; MEDIA = ( ( A * 3.5 ) + ( B * 7.5 ) ) / 11 ; printf ( "MEDIA = %.5lf \n " , MEDIA ) ;   return 0 ; }

URI 1004

Solution of URI 1004 >>Simple Product #include < stdio.h > int main ( ) { int A, B, PROD ; scanf ( "%d%d" , & A, & B ) ; PROD = A * B ; printf ( "PROD = %d \n " , PROD ) ;   return 0 ; }

URI 1003

Solution of URI 1003 >>Simple Sum #include < stdio.h > int main ( ) { int A, B, SOMA ; scanf ( "%d%d" , & A, & B ) ; SOMA = A + B ; printf ( "SOMA = %d \n " , SOMA ) ;   return 0 ; }

URI 1002

Solution of URI 1002 >>Area of Circle #include < stdio.h > int main ( ) { double R, A, pi ; pi = 3.14159 ; scanf ( "%lf" , & R ) ; A = pi * R * R ; printf ( "A=%.4lf \n " , A ) ;   return 0 ; }

URI 1001

Solution of URI 1001  >> Extremely Basic #include<stdio.h> int main ( ) { int A,B,X ; scanf ( "%d%d" , & A, & B ) ; X = A + B ; printf ( "X = %d \n " , X ) ; return 0 ; }