随笔分类 -  程序设计实习作业

摘要:随手再奉上测试数据~ in 10203 4 5 6 7403 14 5 6 73040 50 60 70 8010010 20 30 40 5040020 3 300 60 981000332 90 47 8989 835000200 400 6 70 20400200 10 30 100 9001 阅读全文
posted @ 2018-03-27 00:03 Latticeeee 阅读(252) 评论(0) 推荐(0)
摘要://输出 9 22 5 #include using namespace std; class Sample { public: int v; Sample(int n){ v = n ; } Sample(){ } Sample(const Sample & a){ v = a.v + 2;... 阅读全文
posted @ 2018-03-10 10:33 Latticeeee 阅读(408) 评论(0) 推荐(0)
摘要:#include //n 的第i位替换为m的第i位 using namespace std; int bitManipulation1(int n, int m, int i) { return ((m>>i)&1) == 1? (n|(1> t; while (t--) { cin >> n >> m >> i; cout ... 阅读全文
posted @ 2018-03-05 13:56 Latticeeee 阅读(199) 评论(0) 推荐(0)