Codeforces Round
# A. Cards for Friends 给一个宽度和一个长度的蛋糕,只有为长或宽为偶数时才能切一刀数量乘以 2,问给定尺寸的蛋糕能否分够 k 块。 分别对宽和长除 2,只要是偶数就除,看看能除几次,得到两个次数相乘就是能分的最大数量,和 k 比较一下 #include <bits/stdc++.h>#define ios ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)using namespace std;typedef long long ll;const int SUP=0x800000;const int...
more...