UVA 10177 Sqr/Rects/Cubes/Boxes?
Problem J (2/3/4)-D Sqr/Rects/Cubes/Boxes?Input: standard inputOutput: standard outputTime Limit: 2 secondsYou can see a (4x4) grid below. Can you tel...
poj 1543 Perfect Cubes(注意剪枝)
PerfectCubesTimeLimit: 1000MS MemoryLimit: 10000KTotalSubmissions: 14901 Accepted: 7804DescriptionForhundredsofyearsFermat'sLastTheorem,whichstatedsim...
codechef Sum of Cubes 图论
正解:图论+数学解题报告:先放个传送门QwQ然后放下题目大意?就说给定简单图,无自环或重边,然后求(∑e[i][j])k,i,j∈S,S为点集的子集然后因为k的取值只有[1,3],所以这里分类讨论说下这题QAQ首先k=1k=1就比较简单昂,可以直接考虑每条边的贡献,所以就直接考虑如果这个边有贡献,一...