1 / 9

Introductory Lecture

Introductory Lecture. Programming Club. Agenda. Programming in Linux for newbies Transition from Turbo to GNU C/C++ Face to face with the ONLINE JUDGE Contest for y6 Junta Weekend Programming Contest. Linux for newbies. Basic Linux Commands ls, cp, mkdir, chmod, man, rm, less, mv.

viet
Download Presentation

Introductory Lecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introductory Lecture Programming Club

  2. Agenda • Programming in Linux for newbies • Transition from Turbo to GNU C/C++ • Face to face with the ONLINE JUDGE • Contest for y6 Junta • Weekend Programming Contest

  3. Linux for newbies • Basic Linux Commands • ls, cp, mkdir, chmod, man, rm, less, mv. • Text editors • Kate, kwrite, emacs, vi. • Compile • GNU C : gcc <filename> • GNU C++ : g++ <filename> • Java : javac <filename> • Execute • GNU C/C++ : ./a.out • Java : java <class name>

  4. Transition from Turbo to GNU C/C++ • Use #include<iostream> instead of #include<iostream.h> • Include the line “using namespace std;” before the main function. • Do not include conio.h. • Do not use any external library • int size is 32 bit.

  5. Example Problem • You are given a very long number of about 1000 digits. You have to successively keep on summing the digits till you reach a single digit.For example –Input: 9946879Output: 7 How? 9+9+4+6+8+7+9=52; 5+2=7

  6. Face to face with Online Judge • How to submit ? • Understanding judge response • Success. Solution Accepted. • Compile Error. • Wrong Answer. • Execution Error: It can be further divided into following categories: • Invalid Memory Reference: Null pointer exception? Are you consuming too much memory. • Process tried to write a file. • Process killed by signal 9 => Time Limit Exceeded. • Unknown Error:

  7. Contest for Y6 Junta • Contest exclusively for Y6 • Contest Problems • Pascal triangle • Longest palindrome in a given string • One number in an array of n no.s is missing, nos are not in order, find the missing number • Given a number get a new number by adding the digits of the number……keep doing this until the number reduces to a single digit. Print the digit you get • Submit solutions/algorithms at

  8. WPC All are invited • Register at students.iitk.ac.in/programmingclub/wpc.htm atleast one hour before the contest begins • Date: 20th Aug 2006 • Time : 8:30 pm to 11:30 pm • Submission page : students.iitk.ac.in/programmingclub/wpc.htm

  9. Prizes • WPC • First prize: 300/- • Second Prize: 200/- • Third prize: 100/- • Chocolates for first 10 correct entries for each question. • Y6 contest • First correct entry for each problem : Rs 200

More Related