Search found 5 matches

by nm_varun
Sun Dec 30, 2012 10:24 am
Forum: Volume 8 (800-899)
Topic: 846 - Steps
Replies: 30
Views: 23751

Re: 846 - Steps

brianfry713 wrote:Try using scanf and printf instead of cin and cout.
still goes beyond TL. i'm going to try saving the outputs and running a binomial search.

thanks anyway
by nm_varun
Sun Dec 30, 2012 10:14 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51852

Re: help on #105

Except the ones that don't. Anyway, this is the kind of thing that used to be caught under PE when I used to actually do the competition stuff
by nm_varun
Sat Dec 29, 2012 6:21 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51852

Re: help on #105

Thanks a lot. This kind of presentation problem is so irritating.
by nm_varun
Wed Dec 26, 2012 12:25 pm
Forum: Volume 8 (800-899)
Topic: 846 - Steps
Replies: 30
Views: 23751

Re: 846 - Steps

Can anyone help me out here (Time Limit exceeded)? Is there any way to improve the efficiency that I'm missing?

#include<iostream>
#include<math.h>

using namespace std;

int main()
{
long long ab;
long x,y,a,b,root;
int n;

cin>>n;
while(n!=0)
{
cin>>x>>y;
ab=y-x;
if(ab<=2)
{
cout<<ab ...
by nm_varun
Wed Dec 26, 2012 12:32 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51852

Re: help on #105

Can someone help me out with this (WA)? I can't understand what kind of case I'm missing -

Code: Select all

issue resolved

Go to advanced search