Category: ACM

06
Feb
2016

Uva Solution – 10783 Odd Sum

Code: #include<bits/stdc++.h> using namespace std; int main() { int testcase,cs,j,a,b,low,high; int counter=0; scanf(“%d”,&testcase); for(cs=1; cs<=testcase; cs++) {…

05
Feb
2016

Uva 12577 – Hajj-e-Akbar

#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ char ary[6]; int counter=0; while(1) { gets(ary); if(ary[0]==’*’) {…

05
Feb
2016

Uva 1124 – Celebrity jeopardy

#include<cstdio> int main() { char s[100]; while(gets(s)){ printf(“%s\n”,s); } return 0; }  

04
Feb
2016

URI Online Judge Solution | 1332 One-Two-Three | UVA 12289

Reference: https://github.com/deniscostadsc/playground/blob/master/uri/1332/1332.cpp Code: #include<cstdio> #include<cstring> using namespace std; int main() { int n; char s[6]; scanf(“%d”,&n); while(n–){ scanf(“%s”,&s);…

25
Jan
2016

URI Online Judge Solution| 1168 LED

#include<cstdio> #include<cstdlib> #include<cstring> int main() { char x[1111]; int i,j,n,sum=0; scanf(“%d”,&n); for(i=0; i<n; i++) { scanf(“%s”,x); for(j=0;…

17
Jan
2016

Difference Between Method Overloading and Method Overriding in Java

Method Overloading: 1) Performed within class 2) Parameters must be different 3)Is the example of compile time…