Forums

Forums

Ask, search, or answer any question related to the CCC.

Not logged in | Login

Sort by:
Create New Post

2017 J1 - Quadrant Selection Solution

# Advay Chandorkar, Glenforest SS (advayc)
# py3 solution for 17' j1
x = int(input())
y = int(input())

if y > 0 and x > 0:
    print('1')
elif x < 0...
By advayc on 4/13/2025
0

2017 J2 - Shifty Sum

# Advay Chandorkar, Glenforest SS (advayc)
# py3 solution for 16' j3
n=(input())
k=int(input())
sum=0
for i in range(k+1):
    sum += int(n)
    n += '0'

pri...
By advayc on 4/13/2025
0

CCC 2016 J2 - Magic Squares Solution

# Advay Chandorkar, Glenforest SS (advayc)
# py3 solution for 16' j3
square = []
sums_row = []
sums_col = []
for i in range(4):
    currentrow = [0,0,0,0]
   ...
By advayc on 4/13/2025
0

CCC 2016 J1 - Tournament Selection Solution

# Advay Chandorkar, Glenforest SS (advayc)
# py3 solution for 16' j2
games = [input()for i in range(6)]
win = games.count('W')

if win == 6 or win == 5:
    p...
By advayc on 4/13/2025
0

CCC 2016 J3 - Hidden Palindrome Solution

# Advay Chandorkar, Glenforest SS (advayc)
# py3 solution for 16' j3
t = input()
n=len(t)
c=[]
for i in range(n):
    for j in range(n):
        x=t[i:j+1]
  ...
By advayc on 4/13/2025
0

CCC 2025 S4 - Floor is Lava Solution

# Advay Chandorkar, Glenforest SS (advayc)
# py3 solution for 25' s4

import heapq

# read number of levels (N) and number of tunnels (M)
N, M = map(int, inpu...
By advayc on 3/12/2025
1

CCC '25 - Donut Shop

D=int(input())
E=int(input())


for _ in range(E):
    e=input()
    Q=int(input())


    if e=="+":
       ...
By WATER on 3/2/2025
0

CCC '23 S5 - The Filter Solution

//By Timothy Shnayder, Newmarket Highschool

//To solve this problem, we first do a rough filter, then remove the bad ones with a precise filter

#include <...
By timshnayder on 10/15/2024
0

CCC '21 S5 - Math Homework Solution

//By Timothy Shnayder, Newmarket High School

/*
The idea of this problem is to first interate through each index and build it based of 
the LCM of all t...
By timshnayder on 10/15/2024
0

Needed updates

Hey everyone! If anyone is interested in helping, here are some things that we are still hoping to implement. We will continue to update this post with any new...

By Admin on 10/1/2024
100000000

Suggestions Megathread

Please use this thread to share suggestions you would like to see be implemented by the devs for this repository.


When posting a suggestion in the comments below,...

By Admin on 10/1/2024
100000001

CCC 17 S5 C++ Solution

//By Timothy Shnayder, Newmarket High School

#include 
#define pii pair
#define vpii vector>
#define vi vector
By timshnayder on 10/1/2024
1