C++ Visual Trace Debugger, Code Sandbox & ICT Olympiad
Step-by-step C++ RAM & array trace debugger with breakpoints, 12-problem ICT Olympiad Arena (5-test judge), Python 3 & HTML5/CSS directly in your browser.
12 Progressive ICT Olympiad Problems (OJI & National)
01. Digit Sum & Parity Analysis
Given a positive integer n, compute the sum of its even digits and the total number of digits of n, separated by a single space....
Solve & Trace →02. Valid Triangle & Classification
Given three positive integer side lengths a, b, c, print "ECHILATERAL" if equilateral, "ISOSCEL" if isosceles, "SCALEN" if scalene, or "INVA...
Solve & Trace →03. Mirror Number & Palindrome Check
Given a natural number n, build its reversed number. Print the reversed number on the first line, and "DA" if n is a palindrome or "NU" othe...
Solve & Trace →04. Maximum Digit & Frequency
For a given non-negative integer n, find its largest decimal digit and how many times that digit appears....
Solve & Trace →05. GCD & LCM via Euclidean Algorithm
Given two positive integers a and b, use the Euclidean division algorithm to compute their Greatest Common Divisor (GCD) and Least Common Mu...
Solve & Trace →06. Divisor Count & Prime Test O(√n)
Given n >= 1, compute the total number of positive divisors of n in O(√n) time, followed by a space and "PRIM" if prime, "NEPRIM" if n == 1,...
Solve & Trace →07. Longest Strictly Increasing Contiguous Subarray
Given n followed by n integers, find the maximum length of a contiguous strictly increasing subarray....
Solve & Trace →08. Bubble Sort & Array Median
Given an odd integer n and n integers in an array v, sort the array ascending. Print the sorted array on line 1, and its median element (v[n...
Solve & Trace →09. Binary Search in Sorted Array
Given n, n strictly ascending integers (0-indexed), and target x, print the index of x (0..n-1) using O(log n) binary search, or -1 if absen...
Solve & Trace →10. Sieve of Eratosthenes & Prime Count <= N
Given n (2 <= n <= 400), build the Sieve of Eratosthenes to count how many prime numbers exist in [2, n] and also print the largest prime <=...
Solve & Trace →11. Maximum Subarray Sum (Kadane O(n))
Given n and n integers (including negatives), find the maximum possible sum of a non-empty contiguous subarray in O(n) time....
Solve & Trace →12. Circular Array Rotation by K Steps O(n)
Given n, k, and n integers, rotate the array RIGHT by k positions in O(n) time (handling k >= n cleanly) and print the rotated elements sepa...
Solve & Trace →9 Built-In Curriculum Challenges + Free Playground
Swap Two Numbers (Three Glasses Rule)
Read two integers a and b, swap their values using a helper variable aux, and print them separated by a space.
Sum of Digits with while (n % 10 and n / 10)
Read a natural number n and compute the sum of its digits using a while loop, modulo % 10, and integer division / 10.
Prime Number Check (DA / NU)
Read an integer n and output DA if n is prime, or NU otherwise (watch out for n < 2!).
Count Even Numbers in an Array
Read n followed by n array elements into v, then print how many of them are even (divisible by 2).
Python: Even or Odd (% modulo)
Read an integer n with int(input()) and print PAR if divisible by 2, or IMPAR otherwise.
Python: Sum 1..n (for + range)
Read n and compute 1 + 2 + ... + n using a for i in range(1, n + 1) loop.
Python: Grade Average with Lists
Read the count k followed by k grades on separate lines. Append them to a list and print the integer average using round(sum(note) / len(note)).
HTML5 & CSS: Student Profile Card
Build an HTML5 card with a main <h1> heading, a <ul> list of 3 hobbies, and an <a> link styled with CSS (border-radius and background).
HTML5 & CSS: School Timetable Table
Create a semantic <table> with <thead> (<tr><th>) and at least 3 class rows in <tbody> (<tr><td>), cleanly styled with CSS.