Search found 14 matches
- Sun Nov 25, 2007 9:14 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10902 - Pick-up Sticks
- Replies: 24
- Views: 17887
- Tue Oct 09, 2007 8:22 am
- Forum: Volume 1 (100-199)
- Topic: 137 - Polygons
- Replies: 44
- Views: 11353
- Thu Oct 04, 2007 2:30 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10359 - Tiling
- Replies: 12
- Views: 7092
- Thu Sep 20, 2007 12:44 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 67711
- Thu Sep 20, 2007 10:41 am
- Forum: Volume 111 (11100-11199)
- Topic: 11151 - Longest Palindrome
- Replies: 65
- Views: 43058
- Thu Sep 20, 2007 9:26 am
- Forum: Volume 111 (11100-11199)
- Topic: 11151 - Longest Palindrome
- Replies: 65
- Views: 43058
- Wed Sep 19, 2007 9:14 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11110 - Equidivisions
- Replies: 33
- Views: 24188
- Wed Sep 19, 2007 12:57 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11152 - Colourful Flowers
- Replies: 45
- Views: 28293
- Thu Sep 13, 2007 3:55 pm
- Forum: Volume 4 (400-499)
- Topic: 460 - Overlapping Rectangles
- Replies: 25
- Views: 5780
460 WA ..can anyone help me on it?
//Rossi Kamal
#include<stdio.h>
int max(int xx,int yy);
int min(int aa,int bb);
int main()
{
//freopen("in460.txt","r",stdin);
int n;
while(scanf("%d",&n)!=EOF)
{
int i;
for(i=0;i<n;i++)
{
int l1,l2,d1,d2,r1,r2,u1,u2;
scanf("%d %d %d %d",&l1,&d1,&r1,&u1);
scanf("%d %d %d %d",&l2,&d2 ...
#include<stdio.h>
int max(int xx,int yy);
int min(int aa,int bb);
int main()
{
//freopen("in460.txt","r",stdin);
int n;
while(scanf("%d",&n)!=EOF)
{
int i;
for(i=0;i<n;i++)
{
int l1,l2,d1,d2,r1,r2,u1,u2;
scanf("%d %d %d %d",&l1,&d1,&r1,&u1);
scanf("%d %d %d %d",&l2,&d2 ...
- Wed Sep 12, 2007 8:02 pm
- Forum: Volume 4 (400-499)
- Topic: 445 - Marvelous Mazes
- Replies: 93
- Views: 21928
445 wa and AC
sorry i ve found that silly mistake.....but i want to mention that
my ac code gives the following result
make it clear plz..
input:
1T1b5T!1T2b1T1b2T!1T1b1T2b2T!1T3b1T1b1T!3T3b1T!1T3b1T1b1T!5T1*1T!
11X21b1X!
4X1b1X!
outout:
T TTTTT
T T TT
T T TT
T T T
TTT T
T T T
TTTTT*T
XX X
XXXX X
my ac code gives the following result
make it clear plz..
input:
1T1b5T!1T2b1T1b2T!1T1b1T2b2T!1T3b1T1b1T!3T3b1T!1T3b1T1b1T!5T1*1T!
11X21b1X!
4X1b1X!
outout:
T TTTTT
T T TT
T T TT
T T T
TTT T
T T T
TTTTT*T
XX X
XXXX X
- Sun Sep 09, 2007 8:15 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11260 - Odd Root Sum
- Replies: 22
- Views: 14079
11260 - Odd Root Sum
//PROBLEM ID 11260
I m getting TLE..... can i improve to do better?
#include<stdio.h>
#include<math.h>
int main()
{
//freopen("in11260.txt","r",stdin);
long n;
while(scanf("%ld",&n)&&n!=0)
{
double sum=0;
long int i;
if(n%2==0)
n-=1;
for(i=1;i<=n;i+=2)
{
long a;
a=(long ...
I m getting TLE..... can i improve to do better?
#include<stdio.h>
#include<math.h>
int main()
{
//freopen("in11260.txt","r",stdin);
long n;
while(scanf("%ld",&n)&&n!=0)
{
double sum=0;
long int i;
if(n%2==0)
n-=1;
for(i=1;i<=n;i+=2)
{
long a;
a=(long ...
- Thu Sep 06, 2007 9:10 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11064 - Number Theory
- Replies: 25
- Views: 21785
11064
is it that we are to find cototients?
- Mon Sep 03, 2007 10:17 am
- Forum: Volume 112 (11200-11299)
- Topic: 11244 - Counting Stars
- Replies: 21
- Views: 14036
- Mon Sep 03, 2007 10:16 am
- Forum: Volume 112 (11200-11299)
- Topic: 11244 - Counting Stars
- Replies: 21
- Views: 14036
11244 wa
i am getting wrong answer...
i have removed each steps result with an array v[][].-that will not allow the future result changed
still cannot understand why i am getting wrong answer ..
i have removed each steps result with an array v[][].-that will not allow the future result changed
still cannot understand why i am getting wrong answer ..