Category: UVa
code: import java.math.BigInteger; import java.util.Scanner; /** * Created by Zaki on 6/11/2017. */ public class Uva_Fibonacci {…
C++ Code: But it will not work as c++ don’t support BigIntger so we have to write…
My code: #include<bits/stdc++.h> using namespace std; int main() { int n,m,i,j; while(scanf(“%d %d”,&n,&m)==2) { int cnt=0; for(i=0;…
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…
Recent Comments