Search found 74 matches
- Sat Jun 04, 2005 10:37 am
- Forum: Volume 104 (10400-10499)
- Topic: 10493 - Cats, with or without Hats
- Replies: 13
- Views: 7263
10493 TLE
is my method wrong?? //10493 Cats, with or without Hats #include <cstdio> using namespace std; int main(int argc,char *argv[]) { long n,m,s; scanf("%d %d",&n,&m); while(n!=0) { s=m; printf("%d %d ",n,m); while(m>=n) { s+=m/n; m=m/n+m%n; } if(m==1) { printf("%d\n"...
- Sat Jun 04, 2005 10:32 am
- Forum: Volume 107 (10700-10799)
- Topic: 10722 - Super Lucky Numbers
- Replies: 25
- Views: 10599
- Fri Jun 03, 2005 5:18 am
- Forum: Volume 107 (10700-10799)
- Topic: 10722 - Super Lucky Numbers
- Replies: 25
- Views: 10599
10722 WA
http://morse.inf.unideb.hu/~noszaly/xxx/io/uva_10722.tgz i have check the input/output above.. my prog works right... but judge five me a WA.. //10722 Super Lucky Numbers #include <cstdio> using namespace std; /////////////////////////////////////////////////////////////////// /////////////////////...
- Tue May 31, 2005 5:04 am
- Forum: Volume 4 (400-499)
- Topic: 485 - Pascal's Triangle of Death
- Replies: 50
- Views: 6597
- Tue May 31, 2005 4:58 am
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 23998
- Thu May 26, 2005 5:29 am
- Forum: Volume 103 (10300-10399)
- Topic: 10394 - Twin Primes
- Replies: 101
- Views: 35245
10394 runtime error ..
it runs ok on my computer (dev-cpp) help me... //10394 Twin Primes #include <stdio.h> #include <stdlib.h> #include <math.h> #define uns32 unsigned long #define LONG uns32 #define UL "%u" #define HALF unsigned short #define BITS 8 #define LCM (2*3*5) #define SIEVE_SIZE (16<<10) #define use(...
- Mon May 09, 2005 5:13 am
- Forum: Volume 104 (10400-10499)
- Topic: 10415 - Eb Alto Saxophone Player
- Replies: 21
- Views: 7041
10415 WA need some samples
//10415 Eb Alto Saxophone Player #include <iostream> using namespace std; //if finger press on one button; //then isPress[finger]=true; bool isPress[11]; //store the number of total press of every finger int pressNum[11]; char music[210]; void press(int finger) { if(!isPress[finger]) { pressNum[fin...
- Mon May 02, 2005 4:27 am
- Forum: Volume 4 (400-499)
- Topic: 474 - Heads / Tails Probability
- Replies: 50
- Views: 12345
- Fri Apr 29, 2005 3:29 am
- Forum: Volume 4 (400-499)
- Topic: 485 - Pascal's Triangle of Death
- Replies: 50
- Views: 6597
prob485 --- pascal triangle need sample output..
if change the limit 10^60 to 20
what will the output be?
i need a sample out....(even the newling and space in the output)
what will the output be?
i need a sample out....(even the newling and space in the output)
- Thu Apr 28, 2005 3:02 am
- Forum: Volume 5 (500-599)
- Topic: 514 - Rails
- Replies: 79
- Views: 27391
514
my algo is just to simulate .... my code here: //514 Rails #include <queue> #include <iostream> #include <stack> using namespace std; int main(int argc,char *argv[]) { queue<int> src; queue<int> dst; stack<int> st; int n,tmp,i,dstTop; bool r; cin>>n; while(n!=0) { //clear the queue and stack while(!...
- Thu Apr 28, 2005 2:52 am
- Forum: Volume 4 (400-499)
- Topic: 474 - Heads / Tails Probability
- Replies: 50
- Views: 12345
p474 get WA need sample input
i have solved problem 545 , but get WA when i submit p474 .. my algorithm is simple.... cin>>n; cout<<"2^"<<n<<" = "; tmp=log10((double)2)*(n); b=floor(tmp); a=pow((double)10,tmp-b); cout<<a<<'e'<<b<<endl; my code here ,thanks to help me test it with your AC prog thanks //474 Hea...
- Sun Apr 24, 2005 5:10 am
- Forum: Algorithms
- Topic: some questions about "double type data"
- Replies: 5
- Views: 1159
- Fri Apr 22, 2005 9:08 am
- Forum: Algorithms
- Topic: some questions about "double type data"
- Replies: 5
- Views: 1159
some questions about "double type data"
first ,i am a c++ programmer :D yesterday i submit 12 prog about Geography and Math...but get 12 Wrong Answers? i search the board ,but still dont know clearly.....so i want your help... i think it's helpful for every beginner here.... for each question i need your helpful code(c++); question 1: how...
- Tue Apr 19, 2005 4:20 am
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 49378
- Mon Apr 18, 2005 5:10 am
- Forum: Volume 1 (100-199)
- Topic: 139 - Telephone Tangles
- Replies: 66
- Views: 9820
problem 139,145
i cant see the sample output clearly..
who can give me a clear explanation...
(the width of each part of the output)
thanks
who can give me a clear explanation...
(the width of each part of the output)
thanks