Why WA??
import java.util.Scanner;
public class Main {
public static void main (String[] args){
Scanner scan =new Scanner (System.in);
int t, N, K, P, Case =0;
t =scan.nextInt();
while ((t--)>0){
N =scan.nextInt();
K =scan.nextInt();
P =scan.nextInt();
do{
K++;
if (K%N ==0 ...
Search found 2 matches
- Thu Sep 13, 2012 2:15 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11805 - Bafana Bafana
- Replies: 23
- Views: 12220
- Wed Sep 12, 2012 10:01 am
- Forum: Volume 100 (10000-10099)
- Topic: 10018 - Reverse and Add
- Replies: 169
- Views: 43953
UVA 10018
Here's my java code I don't why getting RunTime Error. Can any one help me ? Thanks in advance ...... :D
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static boolean Palindrome (BigInteger num){
String str =num.toString();
int lengthNum =str.length()-1 ...
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static boolean Palindrome (BigInteger num){
String str =num.toString();
int lengthNum =str.length()-1 ...