AISing Programming Contest 2021(AtCoder Beginner Contest 202) 比赛链接:https://atcoder.jp/contests/abc202/tasks A - Three Dice #include<bits/stdc++.h>usingnamespacestd;intmain(){ ios::sync_with_stdio(false); cin.tie(nullptr);inta, b, c; cin >> a >> b >> c; cout <<21- a -...
For his design, your brother has put an R × C grid on the city. Each cell of the city will contain a building of a certain height.The eastern skyline is given by the tallest building in each of the R rows, and the northern skyline is given by the tallest building in each of th...
It has become a good tradition to solve the “Hanoi tower” puzzle at programming contests in Rybinsk. We will review the rules briefly. There are 3 rods marked A, B, C. Initially, N disks of different diameter are placed on rod A: the smallest disk is at the top, the disks below ...