Hello!!!
Raiyan Kamal's sample inputs is correct for my program.
I submit it but got WA. :( :(
Could anyone help me???
#include <stdio.h>
typedef long long int llint;
void TryHappyNumber();
llint isHappy(llint n);
llint sum_cifre(llint n);
llint square[10];
llint mem[811];
llint ris=0 ...
Search found 2 matches
- Fri Oct 06, 2006 7:28 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10591 - Happy Number
- Replies: 61
- Views: 31079
- Fri Oct 06, 2006 11:17 am
- Forum: Volume 105 (10500-10599)
- Topic: 10591 - Happy Number
- Replies: 61
- Views: 31079
10591 WA!!
Why this code is WA??? :cry: :cry: :cry:
import java.io.*;
class Main {
int[] square = new int[10];
int[] mem = new int[1000];
int ris=0;
static String ReadLn (int maxLg) // utility function to read from stdin
{
byte lin[] = new byte [maxLg];
int lg = 0, car = -1;
String line ...
import java.io.*;
class Main {
int[] square = new int[10];
int[] mem = new int[1000];
int ris=0;
static String ReadLn (int maxLg) // utility function to read from stdin
{
byte lin[] = new byte [maxLg];
int lg = 0, car = -1;
String line ...