Search found 11 matches
- Tue Dec 16, 2014 5:36 pm
- Forum: Volume 4 (400-499)
- Topic: 459 - Graph Connectivity
- Replies: 132
- Views: 24914
Re: 459 - Graph Connectivity
cant get ac , please help, thanks in advance. using dfs : #include <bits/stdc++.h> using namespace std; #define rep(i,n) for(i=0;i<n;i++) #define rep1(i,n) for(i=1;i<=n;i++) #define pb push_back #define siz 1000 char s[10]; char vis[siz]; vector <long> g[siz]; void dfs(long src) { if(vis[src]) retur...
- Mon Sep 15, 2014 8:47 pm
- Forum: Volume 5 (500-599)
- Topic: 594 - One Little, Two Little, Three Little Endians
- Replies: 46
- Views: 13423
Re: 594 - One Little, Two Little, Three Little Endians
getting WA #include <stdio.h> union tag { long n; char a[4]; }k; int main() { long i,x,y; char t; while(scanf("%ld",&i)==1) { k.n=i; /*for(x=0;x<4;x++) printf("%d ",k.a[x]);*/ for(x=0,y=3;x<=y;x++,y--) { t=k.a[x]; k.a[x]=k.a[y]; k.a[y]=t; } printf("%ld converts to %ld\n",i,k.n); } return 0; }
- Tue Aug 26, 2014 1:53 pm
- Forum: Volume 4 (400-499)
- Topic: 465 - Overflow
- Replies: 104
- Views: 24125
Re: 465 - Overflow
thanks for replying, lighted.
- Sun Aug 24, 2014 7:37 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10220 - I Love Big Numbers !
- Replies: 18
- Views: 7596
Re: 10220 - I Love Big Numbers !
10220 - I Love Big Numbers ! for this problem the data set of the judge doesnt have 0 (zero);My code outputs 0 for 0,(it should be 1),though i got ac 

- Sat Aug 23, 2014 8:38 pm
- Forum: Volume 4 (400-499)
- Topic: 465 - Overflow
- Replies: 104
- Views: 24125
Re: 465 - Overflow
cant get ac. please help.
Code: Select all
got ac
- Fri May 09, 2014 8:20 pm
- Forum: Volume 2 (200-299)
- Topic: 272 - TEX Quotes
- Replies: 136
- Views: 35577
Re: 272 - TEX Quotes (WA)
Thanks GURU.I thought that all the separate lines were in a same line.how foolishbrianfry713 wrote:Run your code on the sample input. Check for ' and `

- Fri May 09, 2014 4:44 pm
- Forum: Volume 2 (200-299)
- Topic: 272 - TEX Quotes
- Replies: 136
- Views: 35577
Re: 272 - TEX Quotes (WA)
getting WA.please help.Thank You
Code: Select all
removed
- Sun May 04, 2014 3:58 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11371 - Number Theory for Newbies
- Replies: 65
- Views: 22735
Re: 11371 - Number Theory for Newbies
Thank you so much lbv.I didnt know atoll is not ANSI supported.Thanks for teaching me.I just manually built that function & got AC.Thanks again!!!That looks like AC code. However, if you submitted your code as ANSI C, note that the atoll function will not be available.

- Sat May 03, 2014 7:20 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11371 - Number Theory for Newbies
- Replies: 65
- Views: 22735
Re: 11371 - Number Theory for Newbies
getting WA.please help.thank you
Code: Select all
removed after AC
- Wed Apr 30, 2014 8:24 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10106 - Product
- Replies: 98
- Views: 27276
Re: 10106 -Product
On my machine, Rika71's code compiles and runs on the sample input correctly as he or she wrote it. What was your compile error v1n1t? Were you not able to allocate enough memory for s3? However if I move those large arrays inside of main then I get a seg fault on execution. A profusion of thanks t...
- Sat Apr 26, 2014 9:47 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10106 - Product
- Replies: 98
- Views: 27276
Re: 10106 -Product
why WA??? please help.thanks in advance
Code: Select all
Removed after AC