CPC
Algorithms
programming languag
es
?
100

What is the time complexity of prefix sums?

What is O(N)?

100

what language is this?

# This program adds two numbers

num1 = 1.5
num2 = 6.3

# Add two numbers
sum = num1 + num2

# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

What is Python?

100

Which student from Paly promoted to USACO platinum in the 2023 december contest?

Who is Andrew Fan?

200

How many CPC meetings have there been?

What is 11?


200

what do you use to find a value that satisfies a strictly increasing function 

What is binary search?
200

what language is this?


public class HelloWorld
{
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

What is Java?

300

Who watches youtube in the back?

Who is Tyler Yuan?


300

what is the fastest sorting time of any array of size N?

What is O(N log N)?

300

what language is this?


#include <iostream>
using namespace std;

int main() {

  int first_number, second_number, sum;
   
  cout << "Enter two integers: ";
  cin >> first_number >> second_number;

  // sum of two numbers in stored in variable sumOfTwoNumbers
  sum = first_number + second_number;

  // prints sum
  cout << first_number << " + " <<  second_number << " = " << sum;    

  return 0;
}

What is c++?

300

what does this code output?


input H, R
B = 0
if H>48 then
    B = B + (H - 48) * 2 * R
    H = 48
end if
if H>40 then
   B = B + (H - 40) * (3/2) * R
   H = 40
end if
B = B + H * R
output B

What is 560?


400

Who plays Brawl Stars in the back?

Who is Aiden Yuan?

400

What is the best algorithm to find the smallest polygon containing a set of points on a grid?

What is convex hull?

400

what language is this 


Format : relation(entity1, entity2, ....k'th entity).

Example :
friends(raju, mahesh).
singer(sonu).
odd_number(5).

Explanation :
These facts can be interpreted as :
raju and mahesh are friends.
sonu is a singer.
5 is an odd number.

What is Prolog?

M
e
n
u