摘要: a+b = a^b + (a&b)<<1 用位运算实现两数相加 int Add(int a,int b) { return b?Add(a^b,(a&b)<<1):a; } 位运算实现两数相减 int MINUS(int a,int b) { return b?MINUS(a^b,((a^b)&b) 阅读全文
posted @ 2017-05-12 17:32 暴力都不会的蒟蒻 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: C. Fountains time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Fountains time limit per 阅读全文
posted @ 2017-05-12 16:33 暴力都不会的蒟蒻 阅读(358) 评论(0) 推荐(1) 编辑
摘要: D. Field expansion time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Field expansion tim 阅读全文
posted @ 2017-05-12 16:07 暴力都不会的蒟蒻 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 我从来没想过自己可以被支配的这么惨,大神讲这个场不容易掉分的啊 A. Carrot Cakes time limit per test 1 second memory limit per test 256 megabytes input standard input output standard 阅读全文
posted @ 2017-05-12 05:43 暴力都不会的蒟蒻 阅读(367) 评论(0) 推荐(0) 编辑