Search found 96 matches

by uvasarker
Sat Sep 01, 2012 1:03 pm
Forum: Volume 8 (800-899)
Topic: 855 - Lunch in Grid City
Replies: 41
Views: 19111

Re: 855 - Lunch in Grid City

I am getting Runtime Error. Why? Help please................

Code: Select all

Thanks Guru (brianfry713)
I got AC.
by uvasarker
Mon Aug 20, 2012 9:32 am
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 22561

Re: 355 - The Bases Are Loaded

Lots of Thanks Brother.......
by uvasarker
Mon Aug 20, 2012 9:15 am
Forum: Volume 124 (12400-12499)
Topic: 12444 - Bits and Pieces
Replies: 4
Views: 2207

Re: 12444 - Bits and Pieces

I am getting TLE. Please, anyone will give me some tricky tricks so that I can handle the time for this code: #include <cstdio> #include <cmath> #include <algorithm> #include <cctype> #include <iostream> using namespace std; int main() { int T; scanf("%d",&T); while(T--) { long long c, d, a, b, andd...
by uvasarker
Sun Aug 19, 2012 7:41 am
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 22561

Re: 355 - The Bases Are Loaded

I am getting WA. Please help me.

Code: Select all

]
RMVD
by uvasarker
Tue Aug 07, 2012 8:34 am
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 10468

Re: 537 - Artificial Intelligence

Thanks Guru,
Finally, I got accccc after 10 submissions,
using double.
by uvasarker
Sat Aug 04, 2012 9:38 am
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 10468

Re: 537 - Artificial Intelligence

Guru, It's not working. I have test more with the following test cases: Input: 10 bla bla bla lightning strike I=2A bla bla bla P=2.5MW bla bla voltage? If the voltage is U=200V and the current is I=4.5A, which power is generated? A light-bulb yields P=100W and the voltage is U=220V. Compute the cur...
by uvasarker
Wed Aug 01, 2012 12:48 pm
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 10468

Re: 537 - Artificial Intelligence

I am getting Wa. WHY? Help me please. #include <cstdio> #include <cstring> #include <cctype> #include <iostream> using namespace std; int main() { int T, cas=0; //freopen("in-537.txt","r",stdin); //freopen("out-537.txt","w",stdout); double P=0.0, U=0.0, I=0.0, tmp=0.0; scanf("%d\n",&T); while(T) { c...
by uvasarker
Tue Jul 31, 2012 8:54 am
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21037

Re: 333 - Recognizing Good ISBNs - Need more In/Output sampl

Guru, Still WA. #include <cstdio> #include <cstring> #include <cctype> int main() { char in[500]; //freopen("wtool.txt","r",stdin); //freopen("out-333.txt","w",stdout); while(gets(in)) { int ln=strlen(in), ch=0, s1[500], ok=1, s2[500], total[500], len, hp=0, fag=0, f=0, pos=0; len=ln; for(int i=0 ; ...
by uvasarker
Sat Jul 28, 2012 1:59 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21037

Re: 333 - Recognizing Good ISBNs - Need more In/Output sampl

Please, help me, I am getting W A continuously. Give me some hints or I/O. #include <cstdio> #include <cstring> #include <cctype> int main() { char in[500]; //freopen("wtool.txt","r",stdin); //freopen("out-333.txt","w",stdout); while(gets(in)) { int ln=strlen(in), ch=0, s1[500], ok=1, s2[500], total...
by uvasarker
Sat Jul 21, 2012 12:50 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 27417

Re: 10101 - Bangla Numbers

I am getting W A. Why?
Please help me....

Code: Select all

/* Removed after AC */
by uvasarker
Wed Jul 18, 2012 11:08 am
Forum: Volume 3 (300-399)
Topic: 353 - Pesky Palindromes
Replies: 43
Views: 11989

Re: 353 --- Nice Tests...

Guru I can not understand why I am getting WA? Please, something..................... #include <cstdio> #include <iostream> #include <cstring> #include <cctype> using namespace std; int palin(char s[100]) { char *rn; int ln=strlen(s),k=0,p=0,lm; lm=ln/2; for(int i=0 ; i<lm ; i++) { for(int j=0 ; j<l...
by uvasarker
Wed Jul 18, 2012 9:37 am
Forum: Volume 120 (12000-12099)
Topic: 12049 - Just Prune The List
Replies: 14
Views: 4093

Re: Why I m getting RE for 12049- Just Prune The List

Guru
Please, give me some critical input / output.
by uvasarker
Fri Jul 13, 2012 1:17 pm
Forum: Volume 120 (12000-12099)
Topic: 12049 - Just Prune The List
Replies: 14
Views: 4093

Re: Why I m getting RE for 12049- Just Prune The List

I am getting W A. Why? please help me.. #include <cstdio> #include <vector> using namespace std; int main() { int T; //freopen("in-12049.txt","r",stdin); //freopen("O U T.txt","w",stdout); scanf("%d",&T); while(T--){ long long n, m, tmp; long long fr[100010], sn[100010]; scanf("%lld %lld",&n,&m); fo...
by uvasarker
Sun Jun 24, 2012 9:24 pm
Forum: Volume 121 (12100-12199)
Topic: 12114 - Bachelor Arithmetic
Replies: 1
Views: 2306

12114 - Bachelor Arithmetic

In this problem I think the description of problem output and sample output are not same. I am getting W A in this problem........where is the wrong? Anyone ..please.. #include <cstdio> #include <iostream> using namespace std; int main() { int cas=0; long n,m; while(cin>>n>>m) { if(n==0 && m==0) bre...
by uvasarker
Sun Jun 17, 2012 5:44 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 19486

Re: 490 - Rotating Sentences why? WA please help me

Guru Please check.......Why W A? #include <cstdio> #include <cstring> #include <string> using namespace std; int main() { char in[101][110], s[101]; int len[101], ln, l=0, maxx=0; // freopen("490.txt","r",stdin); // freopen("490_OUT.txt","w",stdout); while(gets(s)) { ln=strlen(s); len[l]=ln; if(ln>m...

Go to advanced search