OJ Board
The Online Judge board
Skip to content
Search
Advanced search
Quick links
Unanswered topics
Active topics
Search
FAQ
Login
Register
Board index
Search
Search
Search found 7 matches
Go to advanced search
Search
Advanced search
Search found 7 matches • Page
1
of
1
by
yjwoo14
Mon Jan 12, 2009 6:36 am
Forum:
Volume 115 (11500-11599)
Topic:
11569 - Lovely Hint
Replies:
8
Views:
2504
Re: 11569 - Lovely Hint
You can solve this problem by using DP.
1) Keep Length and The number of ways.
2) Are these different? (AABC, CBA ..... )
Jump to post
by
yjwoo14
Sun Mar 16, 2008 3:43 pm
Forum:
Volume 8 (800-899)
Topic:
882 - The Mailbox Manufacturers Problem
Replies:
4
Views:
5870
This is solution
matrix[i][s][l] = max[v = s ~ s + l - 1](matrix[i - 1][s][v - s] + v, matrix[i][v + 1][(s + l) - v - 1] + v)
you can get matrix[i][s][l] mean in before post.
Jump to post
by
yjwoo14
Sun Mar 16, 2008 3:14 pm
Forum:
Volume 103 (10300-10399)
Topic:
10324 - Zeros and Ones
Replies:
179
Views:
67132
Plz Help me
I don`t understand why i got WA
this is my code
#include <iostream>
#define MAXL 1000002
using namespace std;
char M[MAXL];
int L[MAXL];
int main(){
int casen = 1;
int n;
int last_fill, len;
int x, y;
char value;
while(cin >> M){
len = strlen(M);
cin >> n;
value = M[0];
last_fill ...
Jump to post
by
yjwoo14
Fri Feb 22, 2008 4:36 am
Forum:
Volume 8 (800-899)
Topic:
882 - The Mailbox Manufacturers Problem
Replies:
4
Views:
5870
You can solve problem by using DP
I got accept by using DP.
I use 3-dimension matrix.
matrix[k][s][l]
k is capcity the number of mailbox.
s is start the number of crackers
l is length...
so matrix[k][s][l] mean is i have 1 mailbox and..
minimum the number of crackers in range s, s + 1, s+ 2 , .... , (s + l - 1)
sorry I can ...
Jump to post
by
yjwoo14
Mon Jan 14, 2008 12:51 pm
Forum:
Volume 113 (11300-11399)
Topic:
11386 - Triples
Replies:
23
Views:
10981
I used STL map
I used STL map O(n^2) (or n^2lgn)
But I got TLE T_T
Is map too slow to solve this problem?
This is my code..
#include<iostream>
#include<map>
using namespace std;
int main(){
int num, cnt;
long long input;
long long max, z;
map<long long, int> M;
while (cin >> num){
cnt = 0;
max = 0 ...
Jump to post
by
yjwoo14
Mon Jan 14, 2008 12:39 pm
Forum:
Volume 100 (10000-10099)
Topic:
10099 - The Tourist Guide
Replies:
91
Views:
43153
I`ve Solved
.. Because of Initialize..
That is 2-th Array;;;;;
Couldn`t Initialize memset
Jump to post
by
yjwoo14
Wed Jan 09, 2008 6:06 am
Forum:
Volume 100 (10000-10099)
Topic:
10099 - The Tourist Guide
Replies:
91
Views:
43153
I don`t know wrong in my code
This is Floyd Version Code . This code return WA
cut after AC..,
This is BFS Version.. This code return TLE
#include <iostream>
#include <vector>
#include <queue>
#define min(x, y) (x<y)?x:y
#define MAXN 101
using namespace std;
struct node {
int first;
int second;
bool path[MAXN ...
Jump to post
Display:
All results
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by:
Author
Post time
Forum
Topic title
Post subject
Direction:
Ascending
Descending
Search found 7 matches • Page
1
of
1
Go to advanced search
Jump to
Real Time Contests and Last Minute Information
↳ General
↳ Real Time Clarification
↳ Fixing Mistakes
↳ HOWTOs
↳ Bugs and suggestions
New system
↳ FAQ
↳ Bugs and suggestions
Let's make some programs!
↳ Other words
↳ Algorithms
↳ New features
Help on the Problemset
↳ Volume 1 (100-199)
↳ Volume 2 (200-299)
↳ Volume 3 (300-399)
↳ Volume 4 (400-499)
↳ Volume 5 (500-599)
↳ Volume 6 (600-699)
↳ Volume 7 (700-799)
↳ Volume 8 (800-899)
↳ Volume 9 (900-999)
↳ Volume 10 (1000-1099)
↳ Volume 11 (1100-1199)
↳ Volume 12 (1200-1299)
↳ Volume 13 (1300-1399)
↳ Volume 14 (1400-1499)
↳ Volume 15 (1500-1599)
↳ Volume 16 (1600-1699)
↳ Volume 17 (1700-1799)
↳ Volume 100 (10000-10099)
↳ Volume 101 (10100-10199)
↳ Volume 102 (10200-10299)
↳ Volume 103 (10300-10399)
↳ Volume 104 (10400-10499)
↳ Volume 105 (10500-10599)
↳ Volume 106 (10600-10699)
↳ Volume 107 (10700-10799)
↳ Volume 108 (10800-10899)
↳ Volume 109 (10900-10999)
↳ Volume 110 (11000-11099)
↳ Volume 111 (11100-11199)
↳ Volume 112 (11200-11299)
↳ Volume 113 (11300-11399)
↳ Volume 114 (11400-11499)
↳ Volume 115 (11500-11599)
↳ Volume 116 (11600-11699)
↳ Volume 117 (11700-11799)
↳ Volume 118 (11800-11899)
↳ Volume 119 (11900-11999)
↳ Volume 120 (12000-12099)
↳ Volume 121 (12100-12199)
↳ Volume 122 (12200-12299)
↳ Volume 123 (12300-12399)
↳ Volume 124 (12400-12499)
↳ Volume 125 (12500-12599)
↳ Volume 126 (12600-12699)
↳ Volume 127 (12700-12799)
↳ Volume 128 (12800-12899)
↳ Volume 129 (12900-12999)
↳ Volume 130 (13000-13099)
↳ Volume 131 (13100-13199)
Help on languages
↳ C
↳ C++
↳ Pascal
↳ Java
Off Topic
↳ Off topic (General chit-chat)
Category
↳ ACM ICPC Archive Board