Showing posts with label Gen Guidelines. Show all posts
Showing posts with label Gen Guidelines. Show all posts

Sunday, September 20, 2009

Mooshak Clarifications

1. You have to register using your h200XXXX or f200XXXX id as username
and h200XXXX@bits-pilani.ac.in email-id only.
(Email to external email services not working, and
IDs except BITS ID will not be excepted).

2. You have to read from Standard Input and write to Standard Output. For example:

In C: 
...

int input input_integer, output_integer;
...
scanf("%d",&input_integer);
//for integer input
//see Input section in Problem Statement for
//input description.
...
...
printf("%d\n",output_integer);
...

In C++:
...
char input_character, output_character;
std::cin.get(input_character);
//read indivisual charecters and then integrate them.
//there are better ways too.
...
...
std::cout.put(output_character);
...

In Java:
...
java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));

String input_line;
input_line=r.readLine();
//might have to be executed iteratively using r.read(char [], 0, 1) till
//white_space or end_of_line or end_of_file.
...
...
System.out.println(output_value);
...

In Python:
...
input_variable=raw_input()
...
print output_variable
...

Testing on your own pc:
Now, to test the cases in your own system, you'll have to generate a testcase file (simply copy the sample input). Let's assume it is input.txt.
Also, you want to save output in a file output.txt.
Use input output redirection. Example:

gcc mycode.c
./a.out< input >output.txt

g++ mycode.cpp
./a.outoutput.txt


javac mycode.java
java mycode output.txt

python mycode.py output.txt

Please note that commands and convensions will change according to OS used.

Saturday, September 19, 2009

Mooshak Started!

The online compiler, mooshak has started working!
Check-it-out!

http://172.17.9.144/~mooshak/

it'll be up all night tonight!
from tomorrow, i'll follow the timings mentioned in the previous post.

How to login?

You'll have to first register,
on the login page,
1. Go to http://172.17.9.144/~mooshak/ (Add to proxy exception list first)
and click login.


2.Then, Click Register:



3. Then in the name section, fill your bits id (h2008.... or f2008... etc).
in email section, fill your bits-email-id.
then in groups select BITS (Important).
then click submit.



4. Check email, use the password to login.

Important Notes & Rules for the contest:-

0.The program should read from standard input and give output to standard output. Format of INPUT is given in all problems specifically.

1.Top 10 correct Entries will be Published for each PTW on every Friday 10 PM. Entries BEFORE Friday 5PM will be ACCEPTED as valid. Every Friday 11 PM a new problem will come for that week.

**2.Special prize for Top 5 Rankers…J

3.Any ME_CS_BITS @googlegroups group Member,Except the Coordinators of DSAR
can participate.

4. Participation will be through mooshak server. see above post for details.

5.Programming Languages allowed -- C,C++, Java, Python.

7.Rules of the contest is subject to change depending upon circumstances.

8.For details go to ---> http://www.ds-ar.blogspot.com/

9.If you have any doubts/suggestions please shoot a mail to dsa[dot]bits[at]gmail[dot]com. This is important for us.

P.S:-

** This is applicable for "Problem of the week"-1 as of now.

Friday, September 18, 2009

Mooshak: The online mouse?

Mooshak is a system for managing programming contests on the Web. Guess what! we have set it up right here, in BITS, Pilani.

check it out:

http://172.17.9.144/~mooshak

(you might have to add it to the proxy exception list)

But, it'll start on Saturday, September 19 at 17:00.
Set your alarms, 'cause the problem of the week will be uploaded tonight!

Also, it'll not be online 24x7 (we have an actual PC running here). Leave the power cuts aside, the timings shall be, as follows:
  1. Mon - Fri 17:00 to 22:00
  2. Sat - Sun 10:00 to 22:00
Watch the blog for more details.

Sunday, September 13, 2009

First Post

This is a blog, kept mainly as a record, by students of BITS, Pilani, is the basis for the SIG (Special Intrest Group), of the same name. On the right is the organization of the blog, consisting of complete archive of whatever will be discussed or formulated, online or in the SIG meetings.

Please add yourself as a follower on the right (click follow button)------^

Enough for now, Let the Game Begin!