随笔分类 - Nowcoder
摘要:A.做游戏 #include "bits/stdc++.h" using namespace std; typedef long long LL; LL A,B,C,X,Y,Z; int main() { cin>>A>>B>>C>>X>>Y>>Z; cout<<min(A,Y)+min(B,Z)+
阅读全文
摘要:A.honoka和格点三角形 分析:这题需要分3种情况来讨论。 (1)2条边都与坐标轴平行的三角形,一定存在于$2 \times 1$或者$1 \times 2$的矩形中,每个当中存在4个,则只需要统计矩形的数量即可 (2)底与坐标轴平行的三角形,且底为2 (3)底与坐标轴平行的三角形,且底为1 #
阅读全文

浙公网安备 33010602011771号