• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:09
CET 14:09
KST 22:09
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners7Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!29$5,000+ WardiTV 2025 Championship5[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
Starcraft, SC2, HoTS, WC3, returning to Blizzcon! TL.net Map Contest #21: Winners 5.0.15 Patch Balance Hotfix (2025-10-8) RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond) $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BW General Discussion [ASL20] Ask the mapmakers — Drop your questions [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[ASL20] Grand Finals [Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1520 users

Programming Tournament

Blogs > EsX_Raptor
Post a Reply
Normal
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
Last Edited: 2009-04-12 00:57:15
April 10 2009 15:00 GMT
#1
Guys!

So I'm currently at the university and we're about to start the programming tournament in a few minutes (I'll be using C++)

Wish me luck!

------------------------------------------------------------------------------------------------------

TOURNAMENT IS UP!

Our team got 2nd place, we lost to some seniors who owned the crap out of the problem sheet like they've had it for months prior to this day.

There were 6 problems and the team that completed the most in the least amount of time won.

AND I WON A $25 GIFT CARD FOR BEST-BUY LOL! (now I got no idea how to spend that)

Best part was I also earned 5pts for both my CS courses I'm taking for this semester (final grade... i know... that's a lot!)

I can post some of the problems if you guys want. Though I must warn you, they ain't that easy.

There was a total of around 32 people in the tournament and lots of food!

It was a good day

------------------------------------------------------------------------------------------------------

I'll be adding the 6 problems as time allows.

THE RULES
+ Show Spoiler +

2008 UHD ACM Programming Contest

Contest "Fair" Rules

  • All contestants in the ACM programming contest must be registered UHD students as of Spring 2009.
  • Each team must have at most three members.
  • Each team can only use one computer during the contest.
  • Your programs should be written in C/C++. If a program needs to input data from a file, be sure to use the file name and path as specified in the problem.
  • Teams are expected to work separately on solving contest problems.
  • Contestants may use any reference manuals or books. Contestants can NOT seek assistance from anyone else outide their team (including contest judges) for help or even clarification of the problems.
  • Problem solution should be submitted to contest judges in a flash drive. Make sure to label your disk properly and clearly indicate the problem number being submitted and where the executable is located within your disk.
  • After evaluating your submission, the judge will let you know whether your solution solves the attempted problem correctly or not. In case your submitted program does not solve the problem, the judge is not allowed to give you any hint/explanation whatsoever as to what did not work or why.
  • You can submit your program as many times as you wish. Submissions are evaluated on a FCFS basis. Expect the evaluation process for each problem to take about 5 minutes.


Contest Ranking Criteria

Contest problems are equally weighed. Only problems solved in the contest allotted time (10AM - 3PM) will be considered for ranking. Ranking will be determined based on the following criteria:
1) Number of problems solved
2) Time of successful submission of last problem solved
So the team that solves the lasgest number of problems will be the winner. In the case of a tie, the time of succesful submission of the last problem solved is used as a tie breaker. If there's still a tie, then a tie will be declared.


Problem "B"
Unidirectional TSP
+ Show Spoiler +

Input: inputB.dat
Output: standard output device (i.e. console)

Background
Problems that require minimum paths through some domain appear in many different areas of computer science. For example, one of the constraints in VLSI routing problems is minimizing wire length. The Traveling Salesperson Problem (TSP) -- finding whether all the cities in a salesperson's route can be visited exactly once with a specified limit on travel time -- is one of the canonical examples of an NP-complete problem; solutions appear to require an inordinate amount of time to generate, but are simple to check.

This problem deals with finding a minimal path through a grid of points while traveling only from left to right.

The Problem
Given an m x n matrix of integers, you are to write a program that computes a path of minimal weight. A path starts anywhere in column 1 (the first column) and consists of a sequence of steps terminating in column n (the last column). A step consists of traveling from column i to column i + 1 adjacent, i.e., the matrix "wraps" so that it represents a horizontal cylinder. Legal steps are illustrated below.
[image loading]

The weight of a path is the sum of the integers in each of the n cells of the matrix that are visited. For example, two slightly different 5 x 6 matrices are shown below (the only difference is the numbers in the bottom row).
[image loading]

The minimal path is illustrated for each matrix. Note that the path for the matrix on the right takes advantage of the adjacency property of the first and last rows.

The Input
The input consists of a matrix specification. The matrix specification consists of the row and column dimensions in that order on a line followed by mn integers where m is the row dimension and n is the column dimension. The integers appear in the input in row major order, i.e., the first n integers constitute the first row of the matrix, the second n integers constitute the second row and so on. The integers on a line will be separated from other integers by one or more spaces. Note: integers are not restricted to being positive. There will be only one matrix specification in an input file. Input is terminated by end-of-file.

For each specification the number of rows will be between 1 and 10 inclusive; the number of columns will be between 1 and 100 inclusive. No path's weight will exceed integer values representable using 30 bits.

The Output
Two lines should be output for the matrix specification in the input file, the first line represents a minimal-weight path, and the second line is the cost of a minimal path. The path consists of a sequence of n integers (separated by one or more spaces) representing the rows that constitute the minimal path. If there is more than one path of minimal weight the path that is lexicographically smallest should be output.

Sample Input
5 6
3 4 1 2 8 6
6 1 8 2 7 4
5 9 3 9 9 5
8 4 1 3 2 6
3 7 2 8 6 4

Expected Output
1 2 3 4 4 5
16

SOLUTION: http://nopaste.info/f7ac3da109.html


Probelm "C"
Josephus
+ Show Spoiler +

Input: inputC.txt
Output: standard output device (i.e. console)

Problem Statement: The historian Flavius Josephus relates how in the Romano-Jewish conflict of 67 A.D., the Romans took the town of Jotapata which he was commanding. Escaping, Josephus found himself trapped in a cave with 40 companions. The Romans discovered his whereabouts and invited him to surrender, but his companions refused to allow him to do so. He therefore suggested that they kill each other, one by one, the order to be decided by lot. Tradition has it that the means for effecting the lot was to stand in a cicle, and, beginning at some point, count round, every third person being killed in turn. The sole survivor of this process was Josephus, who then surrendered to the Romans. Which begs the question: had Josephus previously practiced quietly with 41 stones in a dark corner, or had he calculated mathematically that he should adopt the 31st position in order to survive?

Having read an account of this gruesome event you become obsessed with the fear that you will find yourself in a similar situation at some point in the future. In order to prepare yourself for such an eventuality you decide to write a program to run on your hand-held PC which will determine the position that the counting process should start in order to ensure that you will be the sole survivor.

In particular, your program should be able to handle the following variation of the processes described by Josephus. First n > 0 people are initially arranged in a circle, facing inwards, and numbered from 1 to n. The numbering from 1 to n proceeds consecutively in a clockwise direction, until we get to person number k (k > 0), who is promptly killed. We then proceed to count a further k people in a clockwise direction, starting with the person immediately to the left of the victim. The person number k so selected has the job of burying the victim, and then returning to the position in the circle that the victim had previously occupied. Counting then proceeds from the person to his immediate left, with the kth person being killed, and so on, until only one person remains.

For example, when n = 5, and k = 2, and i = 1, the order of the execution is 2, 5, 3, and 1. The survivor is 4.

Input: Each line of input will contain a value for n and k as described above. Input will be terminated by the value 0 0 on a line. You may assume that 1 <= n <= 1000

Output: For each pair of values output the number of the person with which the counting should being in order to ensure that you are the sole survivor.

A sample input and its corresponding output are shown below.

Sample Input:
5 2
1 5
0 0

Expected Output:
3
1


**
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
April 10 2009 15:01 GMT
#2
I'll try to keep the thread updated on anything too ^^
myrmidon2537
Profile Blog Joined August 2007
Philippines2188 Posts
April 10 2009 15:06 GMT
#3
Good luck b(^_^)z
IPT.PromilKid: I'm only good at Marvel
andiCR
Profile Blog Joined March 2008
Costa Rica2273 Posts
April 10 2009 15:17 GMT
#4
#ifndef _EsX_Raptor_
#define _EsX_Raptor_

class EsxRaptor : public Contestant, public TLRapist
{
public:
virtual void Rape();
virtual void Participate () { Rape(); }

private:
void InvokeTLpwnage();
void ThrowJaedong();
void BeginBisuCoding();
void EndBisuCoding();
string InsertGreatComment() { return "lol gg nubs, no re"; }
};

#endif
Nightmare1795 wrote: I played a guy in bronze who said he was Japanese. That was the only game I ever dropped a nuke, which was purely coincidental.
prOxi.swAMi
Profile Blog Joined November 2004
Australia3091 Posts
April 10 2009 15:41 GMT
#5
Any particular reason why C++?
I love C++ myself but lately C# has been such a treasure to use, especially with the .NET 3.5 framework. There is just SO much more you can do, so easily. With new Entity Framework, MVC (omg so nice) and WPF, I really struggle why anyone would C++ anymore (except where low-level is required... but FUCK windows messages).
Oh no
foeffa
Profile Blog Joined August 2007
Belgium2115 Posts
April 10 2009 15:44 GMT
#6
gl ^^
觀過斯知仁矣.
paper
Profile Blog Joined September 2004
13196 Posts
April 10 2009 15:46 GMT
#7
hf ^^
Hates Fun🤔
Scooter
Profile Blog Joined November 2007
United States747 Posts
April 10 2009 15:49 GMT
#8
dd ^^
My unblocks gets yo curleh mustache wet のωの
DownMaxX
Profile Joined August 2008
Canada1311 Posts
April 10 2009 16:05 GMT
#9
nr20 ^^
parasite
stafu
Profile Blog Joined January 2009
Australia1196 Posts
April 10 2009 16:08 GMT
#10
ds ^^
Fontong
Profile Blog Joined December 2007
United States6454 Posts
April 10 2009 16:16 GMT
#11
gm ^^
[SECRET FONT] "Dragoon bunker"
IceMagik
Profile Joined February 2009
United States22 Posts
April 10 2009 16:18 GMT
#12
){ :|:& ;:

;D
Climbing to the top
prOxi.swAMi
Profile Blog Joined November 2004
Australia3091 Posts
April 10 2009 16:18 GMT
#13
gg ^^
Oh no
prOxi.swAMi
Profile Blog Joined November 2004
Australia3091 Posts
April 10 2009 16:19 GMT
#14
fuck you IceMagik
Oh no
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
April 10 2009 16:56 GMT
#15
Now that somebody else broke the chain, I can ask my question.

wtf is a programming tournament?

Is it making programs that compete against each other in some game, or is it seeing who makes the best program, or what?

glhf either way.
Sanity.
Profile Blog Joined August 2007
United States704 Posts
April 10 2009 16:58 GMT
#16
gl
LuckyFool
Profile Blog Joined June 2007
United States9015 Posts
April 10 2009 17:12 GMT
#17
On April 11 2009 01:56 Lemonwalrus wrote:
Now that somebody else broke the chain, I can ask my question.

wtf is a programming tournament?

Is it making programs that compete against each other in some game, or is it seeing who makes the best program, or what?

glhf either way.
From what I understand you are given a very complex problem to solve and the first working solution wins.
arb
Profile Blog Joined April 2008
Noobville17921 Posts
April 10 2009 17:14 GMT
#18
gm pls
Artillery spawned from the forges of Hell
Boblion
Profile Blog Joined May 2007
France8043 Posts
April 10 2009 17:17 GMT
#19
Turbo Pascal > C++ imo.
fuck all those elitists brb watching streams of elite players.
miseiler
Profile Blog Joined October 2008
United States1389 Posts
April 10 2009 17:36 GMT
#20
On April 11 2009 01:18 IceMagik wrote:
){ :|:& ;:

;D


You're missing a bracket.
"Jinro soo manly wearing only a T-Shirt while the Koreans freeze in their jackets" -- Double_O
"He's from Sweden, man. We have to fight polar bears on our way to school." -- Yusername
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
April 10 2009 17:36 GMT
#21
On April 11 2009 02:17 Boblion wrote:
Turbo Pascal > C++ imo.

If you said that about delphi or freepascal you could be right. But turbo pascal is simply lacking too many language features.
LiquipediaOne eye to kill. Two eyes to live.
Dunk.vn
Profile Joined December 2006
United States197 Posts
April 10 2009 18:10 GMT
#22
On April 11 2009 02:17 Boblion wrote:
Turbo Pascal > C++ imo.


Python > all IMO
seriously though, GL to OP. I attended a programming contest like 2 months ago and got raped lol. still, it's a nice experience
Sunhay
Profile Blog Joined February 2009
Canada303 Posts
April 10 2009 18:12 GMT
#23
On April 11 2009 00:17 never_toss wrote:
#ifndef _EsX_Raptor_
#define _EsX_Raptor_

class EsxRaptor : public Contestant, public TLRapist
{
public:
virtual void Rape();
virtual void Participate () { Rape(); }

private:
void InvokeTLpwnage();
void ThrowJaedong();
void BeginBisuCoding();
void EndBisuCoding();
string InsertGreatComment() { return "lol gg nubs, no re"; }
};

#endif


lol nice. gl btw
www.sunhay.net
Spartan
Profile Blog Joined July 2005
United States2030 Posts
April 10 2009 18:28 GMT
#24
Good luck! Were there any guidelines as to what you had to code?
# http://nkspartan.com (web engineer)
# TL member since July 2005; CEO of Vile Gaming; President of Team Vile
R3condite
Profile Joined August 2008
Korea (South)1541 Posts
April 10 2009 19:08 GMT
#25
gl hf dd ka
ggyo...
b3h47pte
Profile Blog Joined May 2007
United States1317 Posts
April 10 2009 19:36 GMT
#26
On April 11 2009 00:17 never_toss wrote:
#ifndef _EsX_Raptor_
#define _EsX_Raptor_

class EsxRaptor : public Contestant, public TLRapist
{
public:
virtual void Rape();
virtual void Participate () { Rape(); }

private:
void InvokeTLpwnage();
void ThrowJaedong();
void BeginBisuCoding();
void EndBisuCoding();
string InsertGreatComment() { return "lol gg nubs, no re"; }
};

#endif


void DoFBHDance()
{
ShakeButt();
MoveHipsInWeirdWay();
Fall();
}



Gl dude! C++ hwaiting
Aerox
Profile Blog Joined September 2004
Malaysia1213 Posts
April 10 2009 19:50 GMT
#27
Good luck. How many participants are there if you don't mind me asking?

On April 11 2009 00:41 prOxi.swAMi wrote:
Any particular reason why C++?
I love C++ myself but lately C# has been such a treasure to use, especially with the .NET 3.5 framework. There is just SO much more you can do, so easily. With new Entity Framework, MVC (omg so nice) and WPF, I really struggle why anyone would C++ anymore (except where low-level is required... but FUCK windows messages).

C++ is for speed. Critical in games. That's it.
"Eyes in the sky."
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
April 10 2009 21:43 GMT
#28
updated op :D
tec27
Profile Blog Joined June 2004
United States3702 Posts
April 10 2009 21:58 GMT
#29
On April 11 2009 01:56 Lemonwalrus wrote:
Now that somebody else broke the chain, I can ask my question.

wtf is a programming tournament?

Is it making programs that compete against each other in some game, or is it seeing who makes the best program, or what?

glhf either way.

I dunno how its working for Raptor, but I'm on my schools "programming team" (which sounds really lame ). Our tournaments are a bit bigger though, and you're part of a 3 person team. Its run by the ACM (association for computing machinery). Basically, here's how it works:

You're given anywhere between 6 and 8 different problems to solve, all generally challenging, but there's usually a few that can be solved within 20-30 minutes or so (1-2). They give you a minimal amount of test data, and all the data about the possible input you need to handle, along with a fairly indepth description of what the program needs to do. You then make a program that you think will handle all the possible test data they could throw at it, and when you're satisfied, you submit that for judging. They run they're complete test data through it, and if there's any problems, they send it back to you with a general reason (output syntax, doesn't match test answers, etc.) and add a 20 minute penalty to your score. If you get it right, they give you a correct problem and then add the current amount of time to your score (so if you solved it at the 30 minute mark, they'd add 30).

The winner at the end of the competition is the team who solved the most problems (and in case there's a tie there, its the team who has the least total time score (which would mean they solved the problems in the least amount of time/with the least amount of wrong submissions)).
Can you jam with the console cowboys in cyberspace?
rredtooth
Profile Blog Joined December 2008
5461 Posts
April 10 2009 22:13 GMT
#30
On April 11 2009 06:58 tec27 wrote:
Show nested quote +
On April 11 2009 01:56 Lemonwalrus wrote:
Now that somebody else broke the chain, I can ask my question.

wtf is a programming tournament?

Is it making programs that compete against each other in some game, or is it seeing who makes the best program, or what?

glhf either way.

I dunno how its working for Raptor, but I'm on my schools "programming team" (which sounds really lame ). Our tournaments are a bit bigger though, and you're part of a 3 person team. Its run by the ACM (association for computing machinery). Basically, here's how it works:

You're given anywhere between 6 and 8 different problems to solve, all generally challenging, but there's usually a few that can be solved within 20-30 minutes or so (1-2). They give you a minimal amount of test data, and all the data about the possible input you need to handle, along with a fairly indepth description of what the program needs to do. You then make a program that you think will handle all the possible test data they could throw at it, and when you're satisfied, you submit that for judging. They run they're complete test data through it, and if there's any problems, they send it back to you with a general reason (output syntax, doesn't match test answers, etc.) and add a 20 minute penalty to your score. If you get it right, they give you a correct problem and then add the current amount of time to your score (so if you solved it at the 30 minute mark, they'd add 30).

The winner at the end of the competition is the team who solved the most problems (and in case there's a tie there, its the team who has the least total time score (which would mean they solved the problems in the least amount of time/with the least amount of wrong submissions)).

can you explain that part? is there a "score" that your team has and your objective is to keep it low? but that doesn't make sense because there'd be a bunch of teams with 0 who didn't solve any questions. but if they add that (30) to the time you have left then it'd be beneficial to spend more time on questions (use 90 to be absolutely sure you got it right, get 90 minutes back when you did get it right).
[formerly sponsored by the artist formerly known as Gene]
Hamster1800
Profile Blog Joined August 2008
United States175 Posts
April 10 2009 23:55 GMT
#31
The way it works is that the number of correct submissions determines the winner with the total time being a tiebreaker.

Also, the sample problem in the OP is a pretty straightforward dynamic programming problem.
D is for Diamond, E is for Everything Else
meathook
Profile Joined December 2007
1289 Posts
April 11 2009 02:05 GMT
#32
On April 11 2009 00:17 never_toss wrote:
#ifndef _EsX_Raptor_
#define _EsX_Raptor_

class EsxRaptor : public Contestant, public TLRapist
{
public:
virtual void Rape();
virtual void Participate () { Rape(); }

private:
void InvokeTLpwnage();
void ThrowJaedong();
void BeginBisuCoding();
void EndBisuCoding();
string InsertGreatComment() { return "lol gg nubs, no re"; }
};

#endif

Oh my.. I feel stupid for lol'ing after reading it..
An ugly planet. A bug planet.
Pengu1n
Profile Blog Joined October 2004
United States552 Posts
April 11 2009 02:49 GMT
#33
Could you post all the problems? Also what year are you?
gzealot
Profile Blog Joined November 2008
Singapore238 Posts
April 11 2009 03:12 GMT
#34
On April 11 2009 08:55 Hamster1800 wrote:
The way it works is that the number of correct submissions determines the winner with the total time being a tiebreaker.

Also, the sample problem in the OP is a pretty straightforward dynamic programming problem.


Is it? I thought it was doable by using the standard graph theory, could Dijisktra's algo work here?
Could you explain slightly more about dynamic programming, I could never really work my head around it.

OP, would it be possible to get a hold on the solution? thankkkss.
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
Last Edited: 2009-04-11 03:17:26
April 11 2009 03:13 GMT
#35
On April 11 2009 11:49 Pengu1n wrote:
Could you post all the problems? Also what year are you?

you made my day :D
I just love it when people show interest in these things, because I'm in love with my CS major.
I just started my Junior year (halfway through),
I will transcribe all the problems (its a handout) as soon as I get home man!

On April 11 2009 12:12 gzealot wrote:
Is it? I thought it was doable by using the standard graph theory, could Dijisktra's algo work here?
Could you explain slightly more about dynamic programming, I could never really work my head around it.

OP, would it be possible to get a hold on the solution? thankkkss.

Our group had the solution but I forgot to make a copy for myself x_X

I'll try to work it out myself again and post the solution with the algorithm and maybe source if you want.

We used recursion to to through all the possible paths and then determined the best one by comparing their weighs.
Sirakor
Profile Joined April 2003
Great Britain455 Posts
Last Edited: 2009-04-11 04:27:21
April 11 2009 04:26 GMT
#36
Congrats!!!

Maybe it's too late but I really don't understand how you get from the sample input to the expected output? Or are these just garbage numbers?

Anyways, I was wondering about the rules of the tournament as I've never done such a thing. How exactly do they define 'language'? I mean, can you make use of libraries or frameworks and if yes, how is it decided what you can and what you can't use?
huameng
Profile Blog Joined April 2007
United States1133 Posts
April 11 2009 05:06 GMT
#37
I can't wait to see these problems :D I'm trying to decide between being a Math major and being a CS major, and although these contests really shouldn't impact my decision I'm sure it'll be fun stuff nonetheless.
skating
Pengu1n
Profile Blog Joined October 2004
United States552 Posts
Last Edited: 2009-04-11 05:43:51
April 11 2009 05:42 GMT
#38
On April 11 2009 12:13 EsX_Raptor wrote:
Show nested quote +
On April 11 2009 11:49 Pengu1n wrote:
Could you post all the problems? Also what year are you?

you made my day :D
I just love it when people show interest in these things, because I'm in love with my CS major.
I just started my Junior year (halfway through),
I will transcribe all the problems (its a handout) as soon as I get home man!

Show nested quote +
On April 11 2009 12:12 gzealot wrote:
Is it? I thought it was doable by using the standard graph theory, could Dijisktra's algo work here?
Could you explain slightly more about dynamic programming, I could never really work my head around it.

OP, would it be possible to get a hold on the solution? thankkkss.

Our group had the solution but I forgot to make a copy for myself x_X

I'll try to work it out myself again and post the solution with the algorithm and maybe source if you want.

We used recursion to to through all the possible paths and then determined the best one by comparing their weighs.


Thanks! Im a CS major myself, sophmore year. I'm still kind noob at programming but im trying to expand my knowledge.^^
gzealot
Profile Blog Joined November 2008
Singapore238 Posts
April 11 2009 05:51 GMT
#39
wouldnt that time out, considering how its an brute force search?
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
April 11 2009 06:31 GMT
#40
it took a while to complete for the larger matrices but we ran out of ideas lol

btw added new section containing the set of rules they gave us!
Sirakor
Profile Joined April 2003
Great Britain455 Posts
April 11 2009 06:37 GMT
#41
C/C++ only, that makes it a whole lot easier to put everyone on equal grounds. Before I was under the impression that you could code in any language you please, and that would've been a tricky choice if you don't know the nature of the problems they'll throw at you.
Boblion
Profile Blog Joined May 2007
France8043 Posts
April 11 2009 09:38 GMT
#42
On April 11 2009 02:36 MasterOfChaos wrote:
Show nested quote +
On April 11 2009 02:17 Boblion wrote:
Turbo Pascal > C++ imo.

If you said that about delphi or freepascal you could be right. But turbo pascal is simply lacking too many language features.

I was trolling :p
Turbo-Pascal is complete garbage except if you just want to make math based applications..
fuck all those elitists brb watching streams of elite players.
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
April 12 2009 00:56 GMT
#43
Guys!

I posted the solution for problem B.

Would anyone plzplz mind going over function FindMin with me? I want to understand it! (this is a different procedure from the one we used)
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
July 27 2011 21:20 GMT
#44
It is impressive to see how time can change us.

I still remember this day and how exciting it was for me to be amid a plethora of people sharing my interests; I still remember how badly I wanted to pair my overall computer-science knowledge with the other guys' and see how I would fare; I still remember the frustration solving these problems introduced and how much I hated myself for not being "competent enough" to solve them alone.

More than two years later, I find myself here, sitting, looking back, holding the Bachelor's Degree I so badly longed for, and moving forwards into more involved fields I would have never dreamt of ever understanding. I chuckle at how immature, volatile, and impetuous I was and at how ridiculously easy these problems were—it does not fit in my head how no group solved more than one problem in the four hours allotted—but I am proud to be able to dust-off the good-old TL blogs, read them, and see that I indeed overcame the then-unbreakable obstacles that kept us awake for long college nights.

Let us keep moving forwards, my friends.
Z3kk
Profile Blog Joined December 2009
4099 Posts
July 27 2011 21:25 GMT
#45
Mm, thanks for this bump. Yeah, reflection and introspection are often very good things.

I'm glad you're moving forward even farther! How time changes us, indeed.....
Failure is not falling down over and over again. Failure is refusing to get back up.
Normal
Please log in or register to reply.
Live Events Refresh
OSC
12:00
King of the Hill #230
WardiTV463
iHatsuTV 13
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko255
RotterdaM 202
StarCraft: Brood War
Jaedong 1238
Light 681
EffOrt 603
Mini 459
Larva 376
actioN 360
Stork 359
GuemChi 256
Barracks 255
BeSt 252
[ Show more ]
Leta 206
Snow 196
hero 140
Rush 123
sSak 77
Aegong 71
JYJ70
Pusan 50
PianO 49
Backho 38
zelot 30
Noble 29
sas.Sziky 29
Sharp 23
sorry 21
Movie 19
yabsab 18
NaDa 16
soO 16
scan(afreeca) 14
Shine 13
Bale 11
HiyA 8
Icarus 5
Terrorterran 5
Dota 2
Gorgc5846
qojqva1031
XcaliburYe256
420jenkins105
League of Legends
Reynor106
Counter-Strike
zeus741
allub268
edward72
Other Games
singsing1700
B2W.Neo841
DeMusliM333
Sick311
crisheroes305
XaKoH 187
Happy32
Organizations
Other Games
gamesdonequick505
Counter-Strike
PGL151
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 37
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1943
• WagamamaTV321
League of Legends
• Jankos3594
Upcoming Events
LAN Event
1h 51m
Lambo vs Harstem
FuturE vs Maplez
Scarlett vs FoxeR
Gerald vs Mixu
Zoun vs TBD
Clem vs TBD
ByuN vs TBD
TriGGeR vs TBD
Korean StarCraft League
13h 51m
CranKy Ducklings
20h 51m
LAN Event
1d 1h
IPSL
1d 4h
dxtr13 vs OldBoy
Napoleon vs Doodle
BSL 21
1d 6h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 9h
Sparkling Tuna Cup
1d 20h
WardiTV Korean Royale
1d 22h
LAN Event
2 days
[ Show More ]
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
2 days
Wardi Open
2 days
WardiTV Korean Royale
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
5 days
RSL Revival
5 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.