Category: ACM
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++) {…
#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ char ary[6]; int counter=0; while(1) { gets(ary); if(ary[0]==’*’) {…
#include<cstdio> int main() { char s[100]; while(gets(s)){ printf(“%s\n”,s); } return 0; }
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);…
#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;…
Method Overloading: 1) Performed within class 2) Parameters must be different 3)Is the example of compile time…
Recent Comments