introduction to competitive programming with c++

19

Upload: yousef-soliman

Post on 14-Apr-2017

193 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Introduction to competitive programming with c++
Page 2: Introduction to competitive programming with c++

Introduction

●ACM

●Online Judge

●URI

Page 3: Introduction to competitive programming with c++

Problem anatomy

● Description

● Input/Output constraints and specification

● Input/Output samples

● Time limit / Memory limit

Page 4: Introduction to competitive programming with c++

Problem Example

Page 5: Introduction to competitive programming with c++

Automatic judge

● Accepted (AC)

● Presentation Error (PE)

● Wrong Answer (WA)

● Compile Error (CE)

● Time Limit Exceeded (TLE)

Page 6: Introduction to competitive programming with c++

C/C++

● Output

● Input

● Data types

● IF Condition

● Loops

Page 7: Introduction to competitive programming with c++

Output

Page 8: Introduction to competitive programming with c++

End line

Page 9: Introduction to competitive programming with c++

Input

Page 10: Introduction to competitive programming with c++

Data types

Page 11: Introduction to competitive programming with c++

Data types

Page 12: Introduction to competitive programming with c++

Data types

Page 13: Introduction to competitive programming with c++

IF Condition

Page 14: Introduction to competitive programming with c++

IF Condition

Page 15: Introduction to competitive programming with c++

IF Condition

Page 16: Introduction to competitive programming with c++

Loops

Page 17: Introduction to competitive programming with c++

Loops

Page 18: Introduction to competitive programming with c++

Loops

Page 19: Introduction to competitive programming with c++