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.
930 - Polynomial Roots
Moderator: Board moderators
Re: 930 - Polynomial Roots
Code: Select all
#include <stdio.h>
#include <assert.h>
int main() {
char s[150];
assert(gets(s) != NULL);
return 0;
}
Thiago Sonego Goulart - UFMG/Brazil