题目传送门/* stack 容器的应用:矩阵的表达式求值 A 矩阵是a * b,B 矩阵是b * c,则A * B 是a * c*/#include #include #include #include #include #include #include using namespace...
分类:
其他好文 时间:
2015-04-20 22:05:05
阅读次数:
134
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1561
题面:
1561: (More) Multiplication
Time Limit: 1 Sec Memory Limit: 128 MB
Submit: 180 Solved: 95
[Submit][Status][Web
Board]
...
分类:
其他好文 时间:
2015-04-20 09:36:29
阅读次数:
148
A:点击打开链接
CSU 1561 (More)Multiplication
题意:把两个数的乘积每个位置的结果填充上去。
注意这个矩阵最大是1e8,所以不能开数组。
模拟题
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
usi...
分类:
其他好文 时间:
2015-04-19 13:16:53
阅读次数:
169
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:
其他好文 时间:
2015-04-17 23:42:10
阅读次数:
130
题目:Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.链接:http://leetcode.com/problems/divid...
分类:
其他好文 时间:
2015-04-17 17:41:00
阅读次数:
90
(More) Multiplication
Time Limit: 1000MS Memory limit: 65536K
题目描述
Educators are always coming up with new ways to teach math to students. In 2011, an educational software company...
分类:
其他好文 时间:
2015-04-13 11:01:44
阅读次数:
136
Problem B : Power of Matrix
Time limit: 10 seconds
Consider an n-by-n matrix A. We define Ak = A * A * ... * A (k times).
Here, * denotes the usual matrix multiplication.
You ar...
分类:
其他好文 时间:
2015-04-10 18:07:31
阅读次数:
220
如果n在[2, 9]区间,那么Stan胜。如果n在[10, 18]区间,那么Ollie胜,因为不管第一次Stan乘上多少,第二次Ollie乘上一个9,必然会得到一个不小于18的数。如果n在[19, 162]这个区间呢?比如说n=19,那么Stan乘上个2,不管Ollie怎么乘,Ollie得到的数必然...
分类:
其他好文 时间:
2015-04-10 17:35:52
阅读次数:
130
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2015-04-10 07:03:41
阅读次数:
114
1561: (More) Multiplication
Time Limit: 1 Sec Memory Limit: 128 MB
Submit: 86 Solved: 48
[Submit][Status][Web
Board]
Description
Educators are always coming up with new ways to teach ma...
分类:
其他好文 时间:
2015-04-06 20:21:59
阅读次数:
147