Uri 1159 Solution || Beecrowd 1159 Solution

Uri 1159 Solution

Question Uri 1159 Solution || Beecrowd 1159 Solution ||Sum of Consecutive Even Numbers solution in C The program must read an integer X indefinite times (stop when X=0). For each X, print the sum of five consecutive even numbers from X, including it if X is even. If the input number is 4, for example, the output must be 40, that is … Read more

Uri 1094 Solution || Beecrowd 1094 – Experiments solution in C

Uri 1094 Solution

Uri 1094 solution || Beecrowd 1094 – Experiments solution in C Uri 1094 Question And Submission link Experiments Beecrowd 1094/Uri 1094 Solution in C #include <stdio.h> int main() { char cat; int n,i,cob,coe=0,rat=0,sap=0,sum=0; scanf(“%d”,&n); for(i=0;i<n;i++){ scanf(“%d %c”,&cob,&cat); if(‘C’==cat){ coe=coe+cob; } else if(‘R’==cat){//Beecrowd 1094 rat=cob+rat; } else if(‘S’==cat){ sap=sap+cob; } } double pcoe=1,prats=1,psap=1; sum=coe+rat+sap; pcoe=(coe/(sum*1.0))*100.00; prats=(rat/(sum*1.0))*100.00; … Read more

Uri 1048 solution in c || Beecrowd 1048 Salary Increase solution in C,CPP

Uri 1048 solution in c

Uri 1048 Solution in c || Beecrowd 1048 Salary Increase Question #include<stdio.h> int main() { float s; scanf(“%f”,&s); if(s>0 && s<=400.0) printf(“Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 15 %%\n”,(s+(s*.15)),(s*.15)); else if(s<=800.0) printf(“Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 12 %%\n”,(s+(s*.12)),(s*.12)); else if(s<=1200.0) printf(“Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 10 %%\n”,(s+(s*.10)),(s*.10)); else if(s<=2000.0) printf(“Novo salario: %.2f\nReajuste ganho: … Read more

BUBT Intra-University Programming Contest 2022

BUBT Intra-University Programming Contest BUBT Contest problem solution A. Total Solve solution in cpp Question: https://codeforces.com/gym/428051/problem/A #include<iostream> using namespace std; int main() { int a; cin>>a; if(a%2!=0) { cout<<“Odd”<<endl; } else{ cout<<“Even”<<endl; } return 0; } B. Membership Campaign solution in cpp Question: https://codeforces.com/gym/428051/problem/B #include<iostream> #include<math.h> #include<conio.h> using namespace std; int main() { int t,a,b,c; … Read more

Codeforces 236A Boy or Girl Solution || Codeforces Solution 236A

Boy or Girl Solution

Codeforces 236A Boy or Girl Solution in C/CPP Question: A. Boy or Girl Those days, many boys use beautiful girls’ photos as avatars in forums. So it is pretty hard to tell the gender of a user at the first glance. Last year, our hero went to a forum and had a nice chat with … Read more

Codeforces 118A. String Task solution in C/CPP

118A. String Task problem link Codeforces 118A. String Task solution in C #include<stdio.h>int main() { int i; char s[101]; gets(s); strlwr(s); for(i=0;s[i]!=’\0′;i++) { if(s[i]==’a’||s[i]==’e’||s[i]==’i’||s[i]==’o’||s[i]==’u’||s[i]==’A’||s[i]==’E’||s[i]==’O’||s[i]==’I’||s[i]==’U’||s[i]==’y’||s[i]==’Y’) { continue; } else { printf(“.%c”,s[i]); } } printf(“\n”); return 0; } Codeforces 118A. String Task solution in CPP #include <iostream> #include <cstring> #include <cctype> using namespace std; int main() { … Read more

Word capitalization codeforces solution

word capitalization codeforces solution

Word capitalization codeforces solution Codeforces 281A. Word Capitalization Solution in C #include <stdio.h> #include <string.h> int main() { char s[101]; scanf(“%s”, s); s[0] = toupper(s[0]); printf(“%s\n”, s); return 0; } Codeforces 281A. Word Capitalization Solution in CPP #include<iostream> #include<string>using namespace std; int main() { string s; cin>>s; s[0]=towupper(s[0]); cout<<s; } Codeforces 791/A. Bear and Big … Read more

Petya and Strings Codeforces Solution 2024

Codeforces 112A. Petya and Strings Solution in C/CPP

Question petya and strings codeforces solution in C #include<stdio.h> int main() { int a,i; char s1[101]; char s2[101]; gets(s1); gets(s2); strlwr(s1); strlwr(s2); int l=strcmp(s1,s2); printf(“%d\n”,l); return 0; } Codeforces 112A. Petya and Strings Solution in CPP #include <iostream> #include <cstring> #include <cctype> using namespace std; int main() { string s1, s2; getline(cin, s1); getline(cin, s2); … Read more

Beecrowd 1044 solution || Beecrowd 1044 Multiples Solution in C & C++

beecrowd 1044 solution

Beecrowd 1044 Solution || Beecrowd 1044 Multiples Solution Beecrowd 1044 Question Beecrowd 1044 Multiples Solution in C #include<stdio.h> int main() { int a,b; scanf(“%d%d”,&a,&b); if(a%b==0||b%a==0){ printf(“Sao Multiplos\n”); } else{ printf(“Nao sao Multiplos\n”); } return 0; } Beecrowd 1044 Multiples Solution in C++ #include<iostream> using namespace std; int main() { int a, b; cin >> a … Read more

Beecrowd 1043 solution in C ,C++ || Uri 1043 || Free Code Center

Beecrowd 1043 solution

Beecrowd-1043 Triangle-solution ||Beecrowd 1043 solution Triangle beecrowd | 1043 Read three-point floating values (A, B, and C) and verify if is possible to make a triangle with them. If it is possible, calculate the perimeter of the triangle and print the message: Perimetro = XX.X If it is not possible, calculate the area of the … Read more