Search found 14 matches
- Wed Dec 31, 2003 5:00 pm
- Forum: Off topic (General chit-chat)
- Topic: Happy New Year :-)
- Replies: 11
- Views: 6671
Happy New Year :-)
Happy New Year to all ACM programmers
- Mon Dec 22, 2003 5:40 pm
- Forum: Other words
- Topic: Compiler / Interpreter ???
- Replies: 11
- Views: 4852
- Mon Dec 22, 2003 4:55 pm
- Forum: Algorithms
- Topic: Algorithm Books
- Replies: 19
- Views: 7837
- Thu Dec 18, 2003 1:06 am
- Forum: Algorithms
- Topic: Algorithm Books
- Replies: 19
- Views: 7837
- Tue Dec 16, 2003 12:22 am
- Forum: Algorithms
- Topic: Algorithm Books
- Replies: 19
- Views: 7837
Algorithm Books
Hi all expert programmers and honorable sir,
What books usually need to do programming contests?
All you can say from programming to algorithms and maths.
Anything you think useful would you mention please?
What books usually need to do programming contests?
All you can say from programming to algorithms and maths.
Anything you think useful would you mention please?
strrev()
This is not supported under the UVA compiler right?
Then what's the fastest code to do this in C/C++?
And if I use standard string class how can I made this?
Then what's the fastest code to do this in C/C++?
And if I use standard string class how can I made this?
- Mon Dec 01, 2003 12:12 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101754
10035 Error?
This is also not Ok! but why? can anyone help :(
[cpp]#include<iostream.h>
typedef unsigned long int ulong;
int main()
{
ulong a,b;
while(cin >> a >> b)
{
if(a==0 && b==0)
return 0;
int count = 0, cry = 0;
while(a || b)
{
int x = a%10, y = b%10;
a/=10;
b/=10;
if((x+y+cry)>9 ...
[cpp]#include<iostream.h>
typedef unsigned long int ulong;
int main()
{
ulong a,b;
while(cin >> a >> b)
{
if(a==0 && b==0)
return 0;
int count = 0, cry = 0;
while(a || b)
{
int x = a%10, y = b%10;
a/=10;
b/=10;
if((x+y+cry)>9 ...
- Sun Nov 30, 2003 11:48 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10082 - WERTYU
- Replies: 57
- Views: 16590
10082 WA
I don know why this simple problem getting so tough :oops:
[cpp]
#include<iostream>
#include<string>
using namespace std;
int main()
{
string str = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
char ch;
while(cin.get(ch))
{
int index = str.find(ch);
if(ch == '\n')
cout << '\n ...
[cpp]
#include<iostream>
#include<string>
using namespace std;
int main()
{
string str = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
char ch;
while(cin.get(ch))
{
int index = str.find(ch);
if(ch == '\n')
cout << '\n ...
- Sat Oct 04, 2003 6:54 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10137 - The Trip
- Replies: 159
- Views: 70207
- Sat Oct 04, 2003 6:43 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124793
- Sat Oct 04, 2003 9:07 am
- Forum: Volume 101 (10100-10199)
- Topic: 10137 - The Trip
- Replies: 159
- Views: 70207
10137 - The Trip
I don't know! This is not giving me the sample 2nd output!
But why?
This should be the correct answer! [cpp]#include<iostream.h>
#include<iomanip.h>
int main()
{
int n = 0;
while(cin >> n)
{
if(n == 0)
return 0;
double trip[1000] = {0};
double sum = 0,ans = 0;
for(int i=0;i<n;++i ...
But why?
This should be the correct answer! [cpp]#include<iostream.h>
#include<iomanip.h>
int main()
{
int n = 0;
while(cin >> n)
{
if(n == 0)
return 0;
double trip[1000] = {0};
double sum = 0,ans = 0;
for(int i=0;i<n;++i ...
- Fri Oct 03, 2003 10:53 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124793
- Thu Sep 18, 2003 7:56 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124793
10189 trouble
[cpp]
#include<iostream.h>
bool mnsp[101][101];
int m,n;
inline void set(void)
{
memset(mnsp,0,sizeof(mnsp));
}
int check(int a,int b)
{
int t = 0;
if(mnsp[a-1][b-1] == 1)
t++;
if(mnsp[a-1] == 1)
t++;
if(mnsp[a-1][b+1] == 1)
t++;
if(mnsp[a][b-1] == 1)
t++;
if(mnsp[a][b+1] == 1)
t ...
#include<iostream.h>
bool mnsp[101][101];
int m,n;
inline void set(void)
{
memset(mnsp,0,sizeof(mnsp));
}
int check(int a,int b)
{
int t = 0;
if(mnsp[a-1][b-1] == 1)
t++;
if(mnsp[a-1] == 1)
t++;
if(mnsp[a-1][b+1] == 1)
t++;
if(mnsp[a][b-1] == 1)
t++;
if(mnsp[a][b+1] == 1)
t ...
- Thu Apr 10, 2003 9:13 pm
- Forum: Bugs and suggestions
- Topic: 511 - Do You Know the Way to San Jose? - Do nothing AC
- Replies: 62
- Views: 11130
200 Problem
Hi!
I am new not only in programming but also in online contests.
here I was trying to solve 200.
I have solved few problems related with lexographic comparisons.
But this seems inverse of that?
I am not getting any clue. Help please
I am new not only in programming but also in online contests.
here I was trying to solve 200.
I have solved few problems related with lexographic comparisons.
But this seems inverse of that?
I am not getting any clue. Help please
