Search found 2 matches

by nrkt
Sun Jul 27, 2003 10:24 pm
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 28965

thanx a lot LA-Z-BOy, I corrected it the way you suggested and it ran ok
by nrkt
Sat Jul 19, 2003 2:40 pm
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 28965

Problem 455: WA

I can't get what's wrong with this code:

[java]
import java.io.*;

class Main {

static String read() {
int maxLg = 255;
byte lin[] = new byte[maxLg];
int lg = 0, car = -1;
String line = "";
try {
while (lg < maxLg) {
car = System.in.read();
if ((car < 0) || (car == '\n')) break ...

Go to advanced search