Skip to content

Instantly share code, notes, and snippets.

@tienthanh2509
Last active November 19, 2017 12:38
Show Gist options
  • Save tienthanh2509/7e9c664549c0614135ab26a39debb740 to your computer and use it in GitHub Desktop.
Save tienthanh2509/7e9c664549c0614135ab26a39debb740 to your computer and use it in GitHub Desktop.

Contest Management System (like IOI)

Link Website Thi: https://olp.tdmu.edu.vn

Website xem bảng xếp loại trực tuyến https://ranking.olp.d13ht01.tk/

Build tools:

  • gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
  • g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
  • Free Pascal Compiler version 3.0.0+dfsg-2 [2016/01/28] for x86_64
  • OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
  • Python 2.7.12
  • PHP 7.0.18-0ubuntu0.16.04.1 (cli) ( NTS )

Đề mẫu

Đề bài Tổng A+B (TONG)

Lệnh biên dịch

  • C++11 / g++ /usr/bin/g++ -DEVAL -std=c++11 -O2 -pipe -static -s -o TONG TONG.cpp
  • C11 / gcc /usr/bin/gcc -DEVAL -std=c11 -O2 -pipe -static -s -o TONG TONG.c -lm
  • Java 1.4 / gcj /usr/bin/gcj --main=TONG -O3 -o TONG TONG.java
  • Pascal / fpc /usr/bin/fpc -dEVAL -XS -O2 -oTONG TONG.pas

Code mẫu

C/C++

#include<iostream>
using namespace std;
int main()
{
   int a, b;
   cin>>a>>b;
   cout<<a+b;
   return 0;
}

Pascal

var a, b, c: longint;
begin
    read(a, b);
    c:= a+b;
    write(c);
end.

Java

import java.io.*;
import java.util.Scanner;
class TONG {
    public static void main(String[] args) throws IOException
    {
        Scanner in = new Scanner(System.in);
        PrintStream out = System.out ;
        int a = in.nextInt();
        int b = in.nextInt();
        out.print(a+b);
    }
}```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment