Difference between revisions of "Be the Machine - if"

From Progzoo
Jump to: navigation, search
(Problem 1)
Line 1: Line 1:
 
+
<shell lang="java" className="Cia" lang='java'>
<shell lang="java" className="Cia" import="shells_bbc.xml#fun" lang='java'/>
+
import java.io.BufferedReader;
 +
import java.io.FileReader;
 +
public class Cia{
 +
QcQ
 +
public static void main(String [] argv)
 +
    throws Exception{
 +
    BufferedReader fh =
 +
    new BufferedReader(new FileReader("bbc4.txt"));
 +
    String line;
 +
    while ((line=fh.readLine())!=null){
 +
      String [] wrds = line.split("\t");
 +
      oneLine(wrds[0], wrds[1],Integer.parseInt(wrds[2]),
 +
        Long.parseLong(wrds[3]),Long.parseLong(wrds[4]));
 +
    }
 +
  }
 +
}
 +
</shell>
 
==Problem 1==
 
==Problem 1==
 
<question className="Cia" title="What's the output/" copyfile="bbc4.txt">
 
<question className="Cia" title="What's the output/" copyfile="bbc4.txt">

Revision as of 11:51, 1 October 2009

Problem 1


[Font] [Default] [Show] [Resize] [History] [Profile]