Search found 1 match

by papon sen
Sat Dec 26, 2015 8:28 am
Forum: Volume 114 (11400-11499)
Topic: 11466 - Largest Prime Divisor
Replies: 29
Views: 21644

Re: 11466 - Largest Prime Divisor

The program generates correct output but gets wrong ans. I tried it for each input which is given.Please help me to find why my code is getting wrong answer.

#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,input;
while(scanf("%lld",&input)!=EOF)
{

if(input==0)
break ...

Go to advanced search