Search found 8 matches

by terry646623
Wed Jun 04, 2014 10:05 am
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44442

497-SDI

Why did I get wrong answer?
#include<stdio.h>

int* seqlen;
int* address;
int* templisarray;
int* lisarray;

void printarray(int array[],int len){
int i;
for(i=0;i<len;i++)
printf("%d\n",array[i]); }

void lis(int array[],int len){
int i,j,templis,maxlis=1,tempaddress,maxaddress=-1;
seqlen ...
by terry646623
Tue Mar 25, 2014 3:43 pm
Forum: Volume 110 (11000-11099)
Topic: 11063 - B2-Sequence
Replies: 73
Views: 51665

Re: 11063 - B2-Sequence

why do I get wrong answer :(

Code: Select all

Yeah...This is a AC code. I just don't know why the system told that this is wrong answer before...
by terry646623
Tue Mar 11, 2014 10:53 am
Forum: Volume 123 (12300-12399)
Topic: 12342 - Tax Calculator
Replies: 33
Views: 21647

Re: 12342 Tax Calculator

Why am I got wrong answer?

Code: Select all

got ACCEPTED. I used the wrong tax calculation algorithm before XD
by terry646623
Sun Mar 02, 2014 4:33 pm
Forum: Volume 6 (600-699)
Topic: 661 - Blowing Fuses
Replies: 67
Views: 31120

Re: 661 - Blowing Fuses

Help I got wrong answer

Code: Select all

got AC. Careless spelling mistake...
by terry646623
Wed Feb 26, 2014 3:45 am
Forum: Volume 100 (10000-10099)
Topic: 10054 - The Necklace
Replies: 62
Views: 42336

Re: 10054 - The Necklace

Wrong answer. Why?
#include <stdio.h>
#include<stdlib.h>
void sort(int bead[3000],int number){
int i;
int j;
int temp;
for(i=1;i<number;i++){
for(j=i;j>0;j--){
if(bead[j]<bead[j-1]){
temp=bead[j-1];
bead[j-1]=bead[j];
bead[j]=temp; }
}
}
}
int necklace(int bead[3000],int number){
int ...
by terry646623
Mon Feb 24, 2014 2:12 pm
Forum: Volume 109 (10900-10999)
Topic: 10945 - Mother bear
Replies: 65
Views: 29055

Re: 10945 - Mother Bear WA why? Anyone help me please

Why I get wrong answer

Code: Select all

thanks! brianfry713.I got accepted. I finally know that Null is very important for string.
by terry646623
Sat Feb 08, 2014 4:15 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 39078

uva 483 Word Scramble

Why am I get output limit? Please help :cry:

Code: Select all

Got accepted when using while( get(letter) ) {...}
Thank You! :D
by terry646623
Fri Jan 17, 2014 3:43 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 102115

10035-Primary Arithmetic

Help! I've checked many bundary cases, and the result is correct. But I still got wrong answer, why?
#include <stdio.h>
#include<stdlib.h>
int main() {
long long int num1;
long long int num2;
int carry=0;
int check=0;
while(1){
scanf("%lld %lld",&num1,&num2);
if(num1==0&&num2==0)
break ...

Go to advanced search