棋子

导航

2016年3月28日 #

给定矩阵行数和矩阵列数,顺时针打印矩阵(从0开始)

摘要: //石头 2016 / 3 / 28 21:38 : 32 #include #include using namespace std; class Solution { public: void printMatrix(vector > &matrix) { int count = 0; if (matrix.empty()) ... 阅读全文

posted @ 2016-03-28 23:15 鼬与轮回 阅读(353) 评论(0) 推荐(0) 编辑

20150328晚,不使用乘号运算符实现两个整数乘法

摘要: //20150328晚,不使用乘号运算符实现两个数相乘 #include #include #pragma warning(disable:4996) //using namespace std; int main() { int m, n, t; long long ll, absn, absm; while (scanf("%d %d", &m, &n) !... 阅读全文

posted @ 2016-03-28 23:06 鼬与轮回 阅读(492) 评论(0) 推荐(0) 编辑