中国大学生程序设计竞赛网络选拔赛题解.docx

中国大学生程序设计竞赛网络选拔赛题解.docx

? ? 中国大学生程序设计竞赛网络选拔赛题解 ? ? 2019中国大学生程序设计竞赛(CCPC)网络选拔赛题解目录(按难度排序) hdu6702: ^ ^ hdu6708:Windows Of CCPC hdu6709:Fishing Master hdu6706:Shuffle Card hdu6705:path hdu6703:array hdu6704:K-th occurrence hdu6710:Kaguya hdu6706:huntian oy hdu6711:Touma Kazusas function hdu6712:sakura hdu6702: ^ ^ 点此进入 题意: 输入A,B,求使得(A xor C) (B xor C)最小的最小C。 做法:把二进制的A,B写出来就会发现,要使得这个等式最小,那么C需要在A,B二进制位上所有同为1的变成同为0,可以知道答案就是A B了,记得开long long。 关于题解: 代码: #include map #include set #include cmath #include queue #include cstdio #include vector #include climits #include cstring #include cstdlib #include iostream

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档