Nolan Hamilton from Melbourne was looking for 100 page essay best friend in hindi
Quincy Daly found the answer to a search query 100 page essay best friend in hindi
100 page essay best friend in hindi
http://essayerudite.com/images/banner/500x500.jpg ...
Search found 42 matches: 11321
Searched query: 11321
- Thu Aug 22, 2019 2:50 pm
- Forum: General
- Topic: in queue... what queue?
- Replies: 2201
- Views: 395802
- Sun May 01, 2016 11:54 am
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
i got Time limit can anyone help me with my code ?
#include<iostream>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b)
{
if(a==0&&b==0)
{
cout << "0 0" << endl;
break;
}
int ar[a];
for(int i=0;i<a;i++)
{
cin >> ar[i];
}
for(int i=0;i<a;i++)
{
for(int j=i+1;j<a;j ...
#include<iostream>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b)
{
if(a==0&&b==0)
{
cout << "0 0" << endl;
break;
}
int ar[a];
for(int i=0;i<a;i++)
{
cin >> ar[i];
}
for(int i=0;i<a;i++)
{
for(int j=i+1;j<a;j ...
- Fri Feb 27, 2015 8:12 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
I got AC after 11 RTE .. my java code got all these RTE cuz my implementation of comparable was not perfect , in compareTo you should return 0 when numbers are equals ..don't ignore this part .
- Tue Nov 18, 2014 5:09 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
I've been trying to solve this one for a while now, and it only gives me WA, even though it passed all test cases I could find for it.
I don't see what is missing for that to fit in Ac. Can anyone help?
I don't see what is missing for that to fit in Ac. Can anyone help?
Code: Select all
AC, just missing "\n" when printing the "0 0" line ¬¬
- Wed Sep 03, 2014 9:01 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
Change your cmp function. Here is one that works: bool cmp(pair<long long int, long long int> p1, pair<long long int, long long int> p2) {
if(p1.first < p2.first)
return true;
if(p1.first > p2.first)
return false;
if(abs(p1.second) % 2 != abs(p2.second % 2))
return (abs(p1.second) % 2 > abs(p2 ...
if(p1.first < p2.first)
return true;
if(p1.first > p2.first)
return false;
if(abs(p1.second) % 2 != abs(p2.second % 2))
return (abs(p1.second) % 2 > abs(p2 ...
- Mon Sep 01, 2014 1:17 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
Please someone reply.. I have posted my code.. It runs for all test cases in thread.. Giving RTE...






- Sun Aug 31, 2014 12:44 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
Please.. Someone help..I m getting RTE ..I have tried every alternative.. Can't find what i m doing wrong
:( :(
#include<iostream>
#include<map>
#include<utility>
#include<algorithm>
using namespace std;
pair<long long int,long long int>p[10005];
bool cmp(pair<long long int ,long long int>p1 ...
:( :(
#include<iostream>
#include<map>
#include<utility>
#include<algorithm>
using namespace std;
pair<long long int,long long int>p[10005];
bool cmp(pair<long long int ,long long int>p1 ...
- Fri Feb 14, 2014 2:16 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
brianfry713, Jan, sapnil
Thanks for providing useful test cases for this problem!
Thanks for providing useful test cases for this problem!
- Thu Jun 27, 2013 12:21 am
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321- Sort! Sort!! and Sort!!!
Doesn't match the sample I/O.
- Wed Jun 26, 2013 4:21 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
11321- Sort! Sort!! and Sort!!!
I have gotten RTE couple of times.Can't find out why?
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <list>
#include <deque>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <bitset>
#include <cctype ...
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <list>
#include <deque>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <bitset>
#include <cctype ...
- Tue Aug 28, 2012 6:33 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
InputCorrect output:
Code: Select all
4 2
-2000000000
-2000000001
2000000000
2000000001
0 0
Code: Select all
4 2
-2000000001
-2000000000
2000000000
2000000001
0 0
- Tue May 22, 2012 12:07 am
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
Change line 20 to: if(a>=b)
- Mon May 21, 2012 6:17 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
Hello Everybody 
I got RuntimeError and i Don't know why... Se the code Below
Thanks 

I got RuntimeError and i Don't know why... Se the code Below
Code: Select all
Remove AC

- Thu Sep 22, 2011 9:13 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
And a whole lot of inputs...
100 1
98996523
702138029
966844567
-866845910
-617887192
1929179531
-722252290
-494624710
-897196254
-1995391956
289115659
-2098754920
1057895599
-1771772912
1563686945
-1709067956
-1989092828
-187112734
-640506788
172581791
-2095032708
-2118368114
1336775175 ...
100 1
98996523
702138029
966844567
-866845910
-617887192
1929179531
-722252290
-494624710
-897196254
-1995391956
289115659
-2098754920
1057895599
-1771772912
1563686945
-1709067956
-1989092828
-187112734
-640506788
172581791
-2095032708
-2118368114
1336775175 ...
- Fri May 06, 2011 11:07 am
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 31212
Re: 11321 - Sort! Sort!! and Sort!!!
I also got many RTE's before finding the mistake.
if(abs(a)%2==1 && abs(b)%2==1) //correct,ac
if(a%2=1 && b%2==1) //RTE
Hope this helps
.
if(abs(a)%2==1 && abs(b)%2==1) //correct,ac
if(a%2=1 && b%2==1) //RTE
Hope this helps
