Search found 6 matches

by longted
Tue Feb 03, 2015 6:43 pm
Forum: Volume 5 (500-599)
Topic: 501 - Black Box
Replies: 35
Views: 16405

Re: 501 - Black Box

can tell me why is TLE.how to Solve TLE program #include<stdio.h> #include<set> using namespace std; #define MAX_SIZE 20000 int main() { int case_count=0; scanf("%d",&case_count); while(case_count--) { set<int> my_set[MAX_SIZE]; int my_set_count=1; int m=0,n=0,get_command=0; scanf("%d %d",&m,&n); fo...
by longted
Fri Jan 30, 2015 2:42 pm
Forum: Volume 116 (11600-11699)
Topic: 11629 - Ballot evaluation
Replies: 8
Views: 4537

Re: 11629 - Ballot evaluation

wrong answer can tell me where is wrong, // uva_11629.cpp : ?????????????? // #include<stdio.h> #include<string> #include<string.h> #include<map> using namespace std; bool check(double sum,char *name,double v) { bool flag=false; if(strcmp(name,"<")==0) { if(sum<v) flag=true; } else if(strcmp(name,">...
by longted
Sat Aug 23, 2014 10:08 pm
Forum: Volume 5 (500-599)
Topic: 555 - Bridge Hands
Replies: 12
Views: 3958

uva 555

I know my code output is wrong.I also know qsort paramaters are wrong.but i dont't know how to modify it. who can tell me how to modify qsort paramaters. ths // #include<iostream> #include<string.h> #define MAX_SIZE 512 using namespace std; typedef struct { char suit; char point; }card; int pointtov...
by longted
Wed Aug 20, 2014 5:53 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 40963

Re: 10424

ths,i want to understand to use different between cin and gets
by longted
Wed Aug 20, 2014 5:26 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 40963

Re: 10424

can you tell me why i use while(gets(a_str) && gets(b_str) is accept but use while(cin>>a_str>>b _str) is wrong answer
by longted
Wed Aug 20, 2014 4:07 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 40963

10424

can you tell me my answer is right but upload uva web is wrong. where is my wrong ths my code is below // uva_10424.cpp // #include <iostream> #include <string.h> #include<iomanip> #include<stdio.h> #define MAX_SIZE 512 using namespace std; int caluated_str_value(char *str) { /* A=65 Z=90 a=97 z=122...

Go to advanced search