Home » Tag Archives: URI solution in bangla

Tag Archives: URI solution in bangla

URI problem 2031 solution in C | (Rock, Paper, Airstrike)

#include int main() { char inp1[10],inp2[10]; int i,n; scanf("%d",&n); for(i = 0;i < n;i++){ scanf("%s %s", inp1, inp2); if(inp1[1]=='t'){ if(inp2[1]=='e' || inp2[1]=='a')printf("Jogador 1 venceu\n"); else printf("Aniquilacao mutua\n"); } else if(inp1[1]=='e'){ if(inp2[1]=='a')printf("Jogador 1 venceu\n"); else if(inp2[1]=='e')printf("Sem ganhador\n"); else printf("Jogador 2 venceu\n"); } else if(inp1[1]=='a'){ if(inp2[1]=='a')printf("Ambos venceram\n"); else printf("Jogador 2 venceu\n"); } } return 0; }

Read More

URI problem 1005 solution in C | (Average 1)

**Before watch this make sure that you’ve tried enough** #include<stdio.h> int main(){ double A,B,MEDIA; scanf(“%lf %lf”,&A,&B); A=A*3.5; B=B*7.5; MEDIA=(A+B)/11; printf(“MEDIA = %0.5lf\n”,MEDIA); return 0; } You can also Check The Video Tutorial

Read More

URI problem 1004 solution in C | (Simple Product)

**Before watch this make sure that you’ve tried enough** #include <stdio.h> int main() { int A,B,PROD; scanf(“%d%d”,&A,&B); PROD = A * B; printf(“PROD = %d\n”,PROD); return 0; } You can also Check The Video Tutorial

Read More

URI problem 1003 solution in C | (Simple Sum)

**Before watch this make sure that you’ve tried enough** #include <stdio.h> int main() { int A,B,SOMA; scanf(“%d%d”,&A,&B); SOMA = A + B; printf(“SOMA = %d\n”,SOMA); return 0; } You can also Check The video Tutorial

Read More