CCC '04 J1 - SquaresMac ZhangDec 13, 20201 min readEasy math question!n = int(input()) ans = 1 while ans*ans <= n: ans += 1 ans -= 1 print("The largest square has side length " + str(ans)+'.')
CCC '24 J5 - Harvest Waterloo#include<iostream> #include <vector> #include <algorithm> #include <cmath> #include <stack> using namespace std; int main() { int r, c,...
CCC '24 J4 - Troublesome Keyss1 = input() s2 = input() silly = '' silly_o = '' quiete = '-' i = 0 j = 0 while i < len(s1) and j < len(s2): if s1[i] != s2[j]: if...
CCC '22 J5 - Square Pool #include<iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; bool rowcom(pair<int, int> a, pair<int,...
Comments