ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1528. Sequence

Output Limit Exceeded ?
Posted by wongiseng 31 Oct 2007 02:51
Can anyone enlighten me what causes this OLE ?

I thought my code was harmless, and I am calculating n!%p. At least that's what I am trying to do.


#include<stdio.h>

int main(){

    long long f,g,n,p;
    scanf("%lld %lld",&n,&p);
    while(n+p != 0){
        [code deleted]
        printf("%lld\n",f);
        scanf("%lld %lld",&n,&p);
    }
    return 0;

}

Edited by moderator 04.02.2020 18:32