Search found 5 matches

by mahbub2012
Mon Apr 08, 2013 12:23 am
Forum: Volume 9 (900-999)
Topic: 928 - Eternal Truths
Replies: 11
Views: 6589

WA- 928 - Eternal Truths

thanks brianfry713.

Code: Select all

removed
by mahbub2012
Mon Dec 10, 2012 11:36 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124793

Re: 10189 - Minesweeper

Got Accepted. :D :D

Code: Select all

removed
by mahbub2012
Fri Nov 30, 2012 12:58 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83831

Re: 10070 - Leap Year or Not Leap Year and …

Thank you brianfry713. :D

Code: Select all

Accepted
by mahbub2012
Tue Nov 13, 2012 11:24 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 27508

Re: 11428 - Cubes

why wrong ans




#include<stdio.h>
#include<math.h>

int main()
{
double f,t;
int i,c,n;
int flag=0;

while(scanf("%d", &n)==1) {
if(n==0)
break;

for(i=1; ; i++) {
zz:

if(flag == 1)
{i=i+1;
flag=0; }

f = n + (i*i*i);
t = cbrt(f);
c = t;



if(i>=t)
break;

if(c == t)
{flag = 1 ...

Go to advanced search