Category: ACM-ICPC

31
Aug
2016

Competitive Programming Motivation

http://www.thedailystar.net/shout/cover-story/competitive-programming-where-computer-geeks-become-gladiators-1222453

30
Jun
2016

How to count numbers from string ?

code: #include<stdio.h> #include<stdlib.h> int main(){ char line[]=”1 -2 10000 -50 20 7 445 -4″; char *p,*e; long…

23
Jun
2016

Swap in C

Swap in C #include<stdio.h> int main() { int x,y,z; x=5; y=7; printf(“Before x=%d y=%d\n”,x,y); z=x; x=y; y=z;…

12
Mar
2016

UVA 12541-Birthdates Solutions

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;…

07
Feb
2016

UVA 11479 – Is this the easiest problem?

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)…

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++) {…