930 - Polynomial Roots

All about problems in Volume 9. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
TimeString
New poster
Posts: 26
Joined: Mon Nov 13, 2006 3:53 am

930 - Polynomial Roots

Post by TimeString » Mon May 19, 2008 4:14 pm

i think each set of input of first line may contain a float number, not an integer number, i.e. the degree of polynomial may give like 3.0 .
i use scanf("%d") and get TLE, but use scanf("%s", word) and n = atoi(word) get AC.

tgoulart
New poster
Posts: 42
Joined: Sat Oct 21, 2006 8:37 am
Location: Alegrete, Brazil

Re: 930 - Polynomial Roots

Post by tgoulart » Tue Aug 05, 2008 1:29 am

Code: Select all

#include <stdio.h>
#include <assert.h>

int main() {
	char s[150];
	assert(gets(s) != NULL);
	return 0;
}
This gives runtime error, so this problem has no test data.
Thiago Sonego Goulart - UFMG/Brazil

Post Reply

Return to “Volume 9 (900-999)”