HDU5832】的更多相关文章

A water problem Time Limit: 5000/2500 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 342    Accepted Submission(s): 187 Problem Description Two planets named Haha and Xixi in the universe and they were created with…
A water problem Time Limit: 5000/2500 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 774    Accepted Submission(s): 397 Problem Description Two planets named Haha and Xixi in the universe and they were created with…
不多说就是一个数对两个数的乘积求模运算 不得不说vj上这个题的翻译版本真是太暴力了 难点 主要还是时间的控制,这题太容易TLE了.用到的算法就是大数求余数的ans=(ans*10-a[i]-'0')%mod,其他的就是注意输入的时候的时间控制.我用了cin的加速吧也算是...用scanf这个地方要慢cin一点点(开加速的). 代码 #include <iostream> using namespace std; main() { ios_base::sync_with_stdio(0); ci…
大数 判断整除 /* *********************************************** Author :guanjun Created Time :2016/8/14 19:04:01 File Name :hdu5832.cpp ************************************************ */ #include <iostream> #include <cstring> #include <cstdlib&…