Skip to content

Hasban-Fardani/tlx.toki-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 TLX TOKI — Competitive Programming Solutions

Platform Language Problems Solved Profile


📖 Overview

This repository contains my accepted solutions to problems from TLX TOKI — the official online judge platform maintained by TOKI (Tim Olimpiade Komputer Indonesia), Indonesia's national competitive programming organization.

All solutions are written in C++ and cover a range of algorithmic topics including conditionals, loops, recursion, arrays, mathematics, and pattern generation. Some solutions target national-level competition problems (KSN).

📌 View my full submission history: tlx.toki.id/profiles/hasban


🗂️ Problem List

🔢 Basic I/O & Arithmetic

File Topic
A Tambah B.cpp Basic addition (A + B problem)
Faktorial.cpp Factorial computation
Kuadrat Sempurna.cpp Perfect square check
Nilai Kalimat Matematika.cpp Mathematical expression evaluation
Menghitung Bola.cpp Ball counting logic
Angka Tahun Baru.cpp New Year digit problem

🔀 Conditionals (If-Else)

File Topic
B. If Then.cpp Basic if-then
C. If Then Multi.cpp Multi-branch if-then
D. If Then Else.cpp If-then-else
percabangan_E.cpp Branching — problem E

🔁 Loops

File Topic
A. Break Continue Exit.cpp Loop control: break, continue, exit
B. For.cpp For loop basics
C. While.cpp While loop basics
D. While+Pencacahan.cpp While loop with enumeration

🔣 Pattern Generation

File Topic
H. Pola I.cpp Pattern I
B. Pola II.cpp Pattern II
C. Pola III.cpp Pattern III

➗ Mathematics & Number Theory

File Topic
B. Cek Bilangan Prima.cpp Prime number check
E. Dua Pangkat.cpp Powers of two
E. Luas Segitiga.cpp Triangle area
F. Faktor Bilangan.cpp Factor enumeration
F. Floor dan Ceiling.cpp Floor and ceiling operations
G. Jarak Manhattan.cpp Manhattan distance
G. Statistika Sederhana.cpp Basic statistics (mean, median, mode)
C. Mencari Modus.cpp Mode finding
F. Transpos Matriks.cpp Matrix transposition

🔄 Recursion

File Topic
Rekrusif A.cpp Recursion basics — problem A

📦 Arrays

File Topic
array_course_prob_B.cpp Array course — problem B

📖 Story Problems (Pak Dengklek Series)

File Topic
Pak Dengklek mau ujian.cpp Exam scoring problem
Pak Dengklek Seorang Deadliner.cpp Deadline scheduling
Pak Dengklek dan Deret yang Indah.cpp Beautiful sequence
Pak Dengklek dan Operasi Sederhana.cpp Simple operations

🎯 Other Problems

File Topic
A. Presiden Berlari.cpp Running president problem
B. Ilmu Mengemudi.cpp Driving knowledge
C. Burung Beo.cpp Parrot problem
D. Bebek untuk Teman.cpp Ducks for friends
Baju Konser Blank-on.cpp Concert shirt distribution
Pasar Rakyat.cpp People's market
Penukaran Emas.cpp Gold exchange
Ganesh dan Kereta Api.cpp Ganesh and the train
Ngoding Seru bersama Master Blangkon.cpp Fun coding problem

🏆 National Competition (KSN 2021)

File Competition Problem
ksn2021_1A.cpp KSN 2021 Day 1 — Problem A
ksn_2021_1c.cpp KSN 2021 Day 1 — Problem C

KSN = Kompetisi Sains Nasional (National Science Competition) — Indonesia's highest-level national olympiad.


🧩 Topics Covered

Category Topics
Control Flow Conditionals, loops (for, while), break/continue
Mathematics Prime numbers, factorials, powers, floor/ceiling, statistics
Arrays & Matrices 1D arrays, matrix transposition
Recursion Basic recursive functions
Geometry Manhattan distance, triangle area
Ad Hoc / Logic Story-based problems, pattern generation
Competition KSN (National Science Olympiad) problems

🚀 Getting Started

Prerequisites

  • A C++ compiler: g++ (GCC) or compatible
  • Minimum standard: C++14

Compile & Run

# Compile
g++ -o solution "A Tambah B.cpp" -std=c++17

# Run
./solution

# With input from file
./solution < input.txt

Recommended Online Compilers

If you don't have a local setup:

  • Replit — online C++ IDE
  • Ideone — quick compile and run
  • TLX — submit directly to the judge

📂 Repository Structure

tlx.toki-problem/                     # Branch: c++
│
├── # Basic I/O & Arithmetic
├── A Tambah B.cpp
├── Faktorial.cpp
├── Kuadrat Sempurna.cpp
│
├── # Conditionals
├── B. If Then.cpp
├── C. If Then Multi.cpp
├── D. If Then Else.cpp
│
├── # Loops
├── B. For.cpp
├── C. While.cpp
├── D. While+Pencacahan.cpp
│
├── # Mathematics
├── B. Cek Bilangan Prima.cpp
├── F. Faktor Bilangan.cpp
├── G. Statistika Sederhana.cpp
├── F. Transpos Matriks.cpp
│
├── # Patterns
├── H. Pola I.cpp
├── B. Pola II.cpp
├── C. Pola III.cpp
│
├── # Recursion & Arrays
├── Rekrusif A.cpp
├── array_course_prob_B.cpp
│
├── # KSN National Competition
├── ksn2021_1A.cpp
├── ksn_2021_1c.cpp
│
└── README.md

🌐 About TLX TOKI

TLX (TOKI Learning eXperience) is the official competitive programming platform of TOKI — Indonesia's national team preparation organization for:

  • OSN (Olimpiade Sains Nasional) — Provincial level
  • KSN (Kompetisi Sains Nasional) — National level
  • IOI (International Olympiad in Informatics) — International level

TLX provides structured courses, problem sets, and a full submission judge used by thousands of Indonesian students.


👤 Author

Hasban Fardani


All solutions are accepted on TLX TOKI · Written in C++

About

https://tlx.toki.id/

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages