Category: ACM
Took hints from here: http://www.outsbook.com/uva/?page=latest_post&category=-1&id=12541 and https://github.com/morris821028/UVa/blob/master/volume125/12541%20-%20Birthdates.cpp Code: #include<bits/stdc++.h> using namespace std; int main() { //freopen(“in.txt”,”r”,stdin); int n,i;…
Editorial: Actually I was facing the problem how can make the second digit from the left that…
Editorial: we need to read those : https://en.wikipedia.org/wiki/Quadrilateral https://www.mathsisfun.com/quadrilaterals.html And one thing to be remebered that to…
#include<bits/stdc++.h> using namespace std; int main() { long long int a,b,diff; while((scanf(“%lld%lld”,&a,&b)!=EOF)) { diff=abs(a-b); printf(“%lld\n”,diff); } return…
#include<bits/stdc++.h> using namespace std; int main() { int a,t; while(1){ scanf(“%d”,&a); if(a==42){ break; } else{ printf(“%d\n”,a); }…
Accepted code: #include<bits/stdc++.h> using namespace std; int main() { int testcases,cases; long a,b,c; scanf(“%d”,&testcases); if(testcases>0 && testcases<20)…
Recent Comments