Search found 148 matches

by Shahidul.CSE
Sun Jul 20, 2014 12:16 am
Forum: Volume 118 (11800-11899)
Topic: 11850 - Alaska
Replies: 32
Views: 10298

11850-Alaska

Why WA with my code ? #include<stdio.h> int main() { long long int n, i,j, station[1435],temp,flag; while(scanf("%lld",&n) && n!=0) { flag=1; for(i=0;i<n;i++) scanf("%lld",&station[i]); for(i=0;i<n;i++) { for(j=0;j<n-1;j++) if(station[j]<station[j+1]) { temp=station[j]; station[j]=station[j+1]; stat...
by Shahidul.CSE
Sat Jul 19, 2014 9:57 pm
Forum: Volume 119 (11900-11999)
Topic: 11984 - A Change in Thermal Unit
Replies: 2
Views: 629

11984 - A Change in Thermal Unit

Why having WA with my code ?
I also tried with floorf for nearest and simply without floorf or celif, but every time I am getting WA.

Code: Select all

Removed after Accepted
by Shahidul.CSE
Sat Jul 19, 2014 12:38 pm
Forum: Volume 12 (1200-1299)
Topic: 1237 - Expert Enough?
Replies: 13
Views: 3375

Re: 1237 - Expert Enough?

Thank you so much.................
Got ac!!

Reason was, I made a little changed with my original code on my pc. Now copping from my post, got AC !!
by Shahidul.CSE
Fri Jul 18, 2014 7:16 pm
Forum: Volume 12 (1200-1299)
Topic: 1237 - Expert Enough?
Replies: 13
Views: 3375

Re: 1237 - Expert Enough?

Ok, thank you....
by Shahidul.CSE
Fri Jul 18, 2014 6:58 pm
Forum: Volume 12 (1200-1299)
Topic: 1237 - Expert Enough?
Replies: 13
Views: 3375

Re: 1237 - Expert Enough?

Dear lighted,

Even WA !!
by Shahidul.CSE
Wed Jul 16, 2014 9:05 pm
Forum: Volume 12 (1200-1299)
Topic: 1237 - Expert Enough?
Replies: 13
Views: 3375

1237 - Expert Enough?

Why having WA with my below code?

code removed after got accepted.
by Shahidul.CSE
Wed Jul 16, 2014 1:14 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 54233

10070- Leap year or not Leap year

Why having WA with my code? I am getting correct output of given simple input. And also getting correct output as: for 2100 huluculu, for 22055 ordinary, for 16555 ordinary . I checked for int type also. Where is the wrong? #include<stdio.h> int main() { freopen("10070.txt", "r", stdin); long long i...
by Shahidul.CSE
Tue Jul 15, 2014 11:55 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 32223

Re: Why having WA with UVa 10340- All in All

Thank you !! Got accepted !!!
by Shahidul.CSE
Tue Jul 15, 2014 9:54 pm
Forum: Volume 114 (11400-11499)
Topic: 11461 - Square Numbers
Replies: 15
Views: 7050

11461 - Square Numbers

I had tried with 3 ways, but evertimes I have got WA. Whats going wrong with my codes? way-1: #include<stdio.h> #include<math.h> int main() { long long int a , b,coun; while(scanf("%lld %lld",&a,&b) && (a!=0 || b!=0)) { coun=sqrt(b)+1-sqrt(a); printf("%lld\n",coun); } return 0; } way-2: #include<std...
by Shahidul.CSE
Tue Jul 15, 2014 8:26 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 32223

Re: Why having WA with UVa 10340- All in All

I changed my code as below. Now I am getting output "NO" for input "aa a" but even WA. I added another condition that when length of sub sequence is greater than main sequence, then print NO.

Code removed after getting ac
by Shahidul.CSE
Tue Jul 15, 2014 6:06 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 32223

Why having WA with UVa 10340- All in All

I don't understand why I am having WA with my code.

code removed after got ac
by Shahidul.CSE
Tue Jul 15, 2014 6:03 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 32223

Why WA with UVa 10340- All in All

I don't understand why I am having WA with my code. My code: #include<stdio.h> #include<string.h> int main() { //freopen("10340.txt", "r", stdin); char subs[1039999],mains[1039999],ch; long long int i,j,val; while(scanf("%s %s",&subs,&mains) !=EOF) { j=val=0; for(i=0;i<strlen(subs);i++) { ch=subs ; ...

Go to advanced search