Search found 2 matches

by pete
Fri Mar 15, 2002 8:15 pm
Forum: Volume 2 (200-299)
Topic: 230 - Borrowers
Replies: 10
Views: 9807

230 - Borrowers

Can you give me a set of Test Data of Problem 230? Thank you.
by pete
Thu Mar 14, 2002 10:50 pm
Forum: Volume 3 (300-399)
Topic: 374 - Big Mod
Replies: 79
Views: 24748

Hi!

Could anyone give test data with answers...

I have no idea why I get WA.

My code is:


#include <stdio.h>
unsigned long int b,p,m,res;
main()
{
while (scanf("%d %d %d",&b,&p,&m)==3)
{
res=1;
while (p>1) {
if (p&0x01==1)
res=((res%m)*(b%m))%m;
b=((b%m)*(b%m))%m;
p=p/2;
}
printf ...

Go to advanced search