mycode
but Runtime Error (SIGSEGV)???/
why
(a * b) mod c = ((a mod c) * (b mod c)) mod c
BP = BP / 2 * BP / 2
BP = BP - 1 * B
[cpp]
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;
long big_mod( long b, long p, long m)
{
long c;
if(p==1 ...
Search found 3 matches
- Wed Jul 23, 2003 11:48 am
- Forum: Volume 3 (300-399)
- Topic: 374 - Big Mod
- Replies: 79
- Views: 24577
- Wed Jul 23, 2003 8:05 am
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47379
why cpp with class usually be judged Compile Error ?
the fallowing is the q755`s code ,it has been Compiled by miniGW & vc++ , & worked well local test .why it can be judged Compile Error ???
????????????????????????????
#include <iostream>
#include <string>
#include <cstdlib>
#include <list>
#include <algorithm>
using namespace std;
class ...
????????????????????????????
#include <iostream>
#include <string>
#include <cstdlib>
#include <list>
#include <algorithm>
using namespace std;
class ...
- Wed Jul 23, 2003 8:03 am
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47379
why cpp with class usually be judged Compile Error ?
the fallowing is the q755`s code ,it has been Compiled by miniGW & vc++ , & worked well local test .why it can be judged Compile Error ???
????????????????????????????
#include <iostream>
#include <string>
#include <cstdlib>
#include <list>
#include <algorithm>
using namespace std;
class ...
????????????????????????????
#include <iostream>
#include <string>
#include <cstdlib>
#include <list>
#include <algorithm>
using namespace std;
class ...