I have probed a lot of cases for this problem, and aparent, the code is OK but I have W.A. and I don't know why it is.
Can anybody help my?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
int main(){
int contador, flag;
long int i, j=0,primos[100000],numero ...
Search found 8 matches
- Fri May 27, 2005 4:15 am
- Forum: Volume 106 (10600-10699)
- Topic: 10699 - Count the factors
- Replies: 27
- Views: 16513
- Thu May 26, 2005 12:23 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10851 - 2D Hieroglyphs decoder
- Replies: 5
- Views: 2568
AC
I just have AC.
- Thu May 26, 2005 11:57 am
- Forum: Volume 108 (10800-10899)
- Topic: 10851 - 2D Hieroglyphs decoder
- Replies: 5
- Views: 2568
10851 - 2D Hieroglyphs decoder
I have WA in this problem. Can anyone tel me some critical input cases?
- Thu May 26, 2005 9:38 am
- Forum: Volume 108 (10800-10899)
- Topic: 10853 - Pablito nailed a nail
- Replies: 10
- Views: 4207
10853 - Inputs & outputs for this problem
I need lot of inputs and outputs for this problem, because I don't know why I has WA
Thanks.
Thanks.
- Mon May 23, 2005 4:34 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10721 - Bar Codes
- Replies: 26
- Views: 16750
I have TLE
My problem persist. I don't know how to reduce time.
This is my code for this problem
#include <stdio.h>
#include <stdlib.h>
long contador;
void Formula(int tot,int sep,int max){
int i;
if (tot<sep) return;
else if ((tot<=max)&&(sep==1)) { contador++; return;}
else if (sep==1) return ...
This is my code for this problem
#include <stdio.h>
#include <stdlib.h>
long contador;
void Formula(int tot,int sep,int max){
int i;
if (tot<sep) return;
else if ((tot<=max)&&(sep==1)) { contador++; return;}
else if (sep==1) return ...
- Mon May 23, 2005 2:46 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10721 - Bar Codes
- Replies: 26
- Views: 16750
10721 - TLE
I have TLE for this problem, because I use a Formula to calculate recursively the final number for this problem. How can I quit TLE?
- Mon May 23, 2005 2:12 am
- Forum: Volume 2 (200-299)
- Topic: 255 - Correct Move
- Replies: 17
- Views: 8142
255 - WA
This is my code for this problem. Why I have WA?
#include <stdio.h>
#include <stdlib.h>
int main (int car, char** v) {
int i,j,num1,num2, posicion, N1_X, N1_Y, N2_X, N2_Y, POS_X, POS_Y;
char linea[100];
while(fgets(linea,100,stdin)!=NULL){
sscanf(linea,"%d %d %d",&num1,&num2,&posicion ...
#include <stdio.h>
#include <stdlib.h>
int main (int car, char** v) {
int i,j,num1,num2, posicion, N1_X, N1_Y, N2_X, N2_Y, POS_X, POS_Y;
char linea[100];
while(fgets(linea,100,stdin)!=NULL){
sscanf(linea,"%d %d %d",&num1,&num2,&posicion ...
- Sat May 21, 2005 2:16 am
- Forum: Volume 3 (300-399)
- Topic: 380 - Call Forwarding
- Replies: 3
- Views: 4432
380 - Call Forwarding
I don't have idea why I have W.A. for this problem. Can you help me??
My code is over here:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
short int tel_ini[10][101],tel_fin[10][101],llamadas[10][4],marcados[10],flag;
int Calcula_llamada(int hora,int telefono,int indice){
while ...
My code is over here:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
short int tel_ini[10][101],tel_fin[10][101],llamadas[10][4],marcados[10],flag;
int Calcula_llamada(int hora,int telefono,int indice){
while ...