Kattis
Kattis - Jewelry Box
Intro A geometric problem. Given \[x = a + 2h\\ y = b + 2h\\ \]maximize the value of a * b * h (the volume of the box). This can be done by solving th ......
Kattis - Add or Multiply (Rocky Mountain Regional Contest 2023)
Intro Given a math expression with + or * sign with single digit numbers (1 to 9). Support the following operations: Swap 2 number and evaluate the wh ......
Kattis - A Complex Problem (The 2023 ICPC Rocky Mountain Regional Contest)
Intro This was one of the problems I didn't do during the regional contest. One of my teammates solved it. Observation There are few things to note. F ......
笛卡尔树Kattis-Scaffolding
笛卡尔树Kattis-Scaffolding 注释已经写在代码里了,注意下建树就行 #include<bits/stdc++.h> /*先对题意进行分析,每次带m根柱子,进行x轮,每次往左/右/上搭建,问x的最小值? 一开始在想,怎么就会有最小值呢?后来发现题目说不能往下走 我们还是把图看成一棵树 ......