Search found 21 matches
- Mon Mar 10, 2014 10:59 pm
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 26530
Re: 195 - WA again and again
Why giving Output Limit????? :roll: #include <bits/stdc++.h> using namespace std; #define lop(i,n) for(__typeof(n) i=0; i<(n); i++) #define FOR(i,a,b) for(__typeof(b) i=(a); i<=(b); i++) #define mem(t) memset((t), 0, sizeof(t)) typedef long long int64; typedef long double d64; #define READ(f) freope...
- Sun Mar 09, 2014 8:34 am
- Forum: Volume 106 (10600-10699)
- Topic: 10611 - The Playboy Chimp
- Replies: 44
- Views: 17300
Re: 10611 - The Playboy Chimp- why WA ?
Please help me. Getting WA. All sample I/O matched. :cry: #include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #include<utility> #include<fstream> #include<numeric> #include<string> #include<vector> #include<queue> #include<map> #include<algorithm...
- Wed Jan 22, 2014 8:55 am
- Forum: Volume 107 (10700-10799)
- Topic: 10789 - Prime Frequency
- Replies: 38
- Views: 21324
WA-10789 - Prime frequency
Getting WA. Pls help. :evil: #include <bits/stdc++.h> using namespace std; int main() { int n,c=0; cin>>n; getchar(); while(n--) { int arr[]= {2,3,5,7,11,13,17,19,23,29,31 ,37 ,41,43, 47, 53, 59, 61,67,71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173...
- Fri Dec 27, 2013 8:19 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11689 - Soda Surpler
- Replies: 11
- Views: 5491
Re: 11689 Soda Surpler wrong answer
Why WA. All ans ok But why?
Code: Select all
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,k,r,s,m,cas,i,n2,n1;
scanf("%d",&cas);
while(cas--)
{
scanf("%d%d%d",&n2,&n1,&k);
n=n1+n2;
s=(n-1)/(k-1);
printf("%d\n",s);
}
return 0;
}
- Thu Dec 19, 2013 3:53 am
- Forum: Volume 102 (10200-10299)
- Topic: 10295 - Hay Points
- Replies: 20
- Views: 9158
Re: 10295 - Hay Points
Getting WA. Please check. #include<bits/stdc++.h> using namespace std; int main() { int m,n,i,money,j; char s[1000],s1[10000]; char ss,ssp[]="."; while(scanf("%d%d",&m,&n)!=EOF) { vector< pair< string, int > >v; vector<int>vm; map<string,int>::iterator im; for(i=0; i<m; i++) { scanf("%s %d",&s,&mone...
- Wed Dec 18, 2013 10:42 am
- Forum: Volume 4 (400-499)
- Topic: 484 - The Department of Redundancy Department
- Replies: 103
- Views: 8661
Re: 484-The Department of Redundancy Department Getting WA..
Got AC. Thanks.
- Wed Dec 18, 2013 4:19 am
- Forum: Volume 124 (12400-12499)
- Topic: 12439 - February 29
- Replies: 16
- Views: 2121
Re: 12439 - February 29
Getting Time Limit. Please check it. :evil: #include <bits/stdc++.h> using namespace std; int main() { map<string,int>m; m["January"]=1; m["February"]=2; m["March"]=3; m["April"]=4; m["May"]=5; m["June"]=6; m["July"]=7; m["August"]=8; m["September"]=9; m["October"]=10; m["November"]=11; m["December"...
- Sun Dec 15, 2013 11:21 am
- Forum: Volume 4 (400-499)
- Topic: 484 - The Department of Redundancy Department
- Replies: 103
- Views: 8661
Re: 484-The Department of Redundancy Department Getting WA..
boss, again WA after adding newline.
- Thu Dec 05, 2013 10:19 pm
- Forum: Volume 4 (400-499)
- Topic: 484 - The Department of Redundancy Department
- Replies: 103
- Views: 8661
Re: 484-The Department of Redundancy Department Getting WA..
getting WA. Pls help. #include<cstdio> #include<sstream> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm> #include<set> #include<queue> #include<stack> #include<list> #include<iostream> #include<fstream> #include<numeric> #include<string> #include<vector> #include<cstring> #inc...
- Fri Nov 22, 2013 10:58 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11220 - Decoding the message.
- Replies: 54
- Views: 20525
Re: 11220 - Decoding the message
Thank you. AC
- Fri Nov 22, 2013 6:48 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11220 - Decoding the message.
- Replies: 54
- Views: 20525
Re: 11220 - Decoding the message
Getting WA for many times.... But why? #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cmath> #include <vector> #include <sstream> using namespace std; int counter; void fn(string s) { int l=s.size(); if(l>=counter+1) { cout<<s[counter]; cou...
- Mon Nov 11, 2013 8:30 pm
- Forum: Volume 126 (12600-12699)
- Topic: 12673 - Football
- Replies: 12
- Views: 3448
Re: UVa 12673
Me code giving output
4
9
4
But WA. Plz check it again. Or give me more input or output.
4
9
4
But WA. Plz check it again. Or give me more input or output.
- Sun Nov 10, 2013 4:58 am
- Forum: Volume 126 (12600-12699)
- Topic: 12673 - Football
- Replies: 12
- Views: 3448
12673 - Football
Getting WA. But why? Plz help. #include<cstdio> #include<sstream> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm> #include<set> #include<queue> #include<stack> #include<list> #include<iostream> #include<fstream> #include<numeric> #include<string> #include<vector> #include<cstr...
- Tue Oct 08, 2013 5:47 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10188 - Automated Judge Script
- Replies: 58
- Views: 30712
Re: 10188 - Automated Judge Script

- Fri Oct 04, 2013 8:48 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10188 - Automated Judge Script
- Replies: 58
- Views: 30712
Re: 10188 - Automated Judge Script
Why Givving Runtime Error??? #include <iostream> #include <vector> #include <cstdio> #include <cstdlib> #include <cstring> using namespace std; int main() { for(int o=1; ;o++){ int t,t1,ut,l,l1,count=0,cou=0; char conv[10]; vector<string>cs,cs1; vector<int>ii,ii1; cin>>t; getchar(); if(t==0) break; ...