Search found 4 matches

by nildorpon
Wed Sep 25, 2013 2:58 am
Forum: Volume 119 (11900-11999)
Topic: 11946 - Code Number
Replies: 49
Views: 17275

Re: 11946 - Code Number

Why Runtime error?
Please take a look on my code

import java.io.BufferedInputStream;
import java.util.Scanner;

public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(new BufferedInputStream(System.in));
int t = 0;
String str = "";
StringBuilder sb = null ...
by nildorpon
Fri Sep 20, 2013 9:27 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60515

Re: 406 - Prime Cuts WA

Why Wrong Answer???

import java.io.BufferedInputStream;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(new BufferedInputStream(System.in));
boolean [] primes= primeList(1000);
while(scanner.hasNext()){
int n = scanner ...
by nildorpon
Fri Sep 20, 2013 9:25 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60515

Re: 406 - Prime Cuts Time Limit exceeded

Why Wrong Answer????
import java.io.BufferedInputStream;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(new BufferedInputStream(System.in));
boolean [] primes= primeList(1000);
while(scanner.hasNext()){
int n = scanner ...
by nildorpon
Sun Jul 21, 2013 4:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83978

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

I got a Compile error.
Please take a look on my code and tell me whats wrong....

import java.io.BufferedInputStream;
import java.util.Scanner;

public class Main {
public static void main(String [] args){
Scanner scanner = new Scanner(new BufferedInputStream(System.in));
while(scanner.hasNext ...

Go to advanced search