i got WA on this problem
here is my code :
#include <iostream>
#include <math.h>
using namespace std;
#define m 100000000LL
int main()
{
unsigned long long n, nn, s, ss, r;
while (cin >> n, n)
{
n -= (n + 1) & 1;
s = (unsigned long long) floor (sqrt ((long long double) n));
nn = (s * s ...
Search found 2 matches
- Sun Mar 23, 2008 5:21 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11260 - Odd Root Sum
- Replies: 22
- Views: 14083
- Sat Aug 04, 2007 9:01 pm
- Forum: Off topic (General chit-chat)
- Topic: How old are you? Statistics.
- Replies: 121
- Views: 195412