ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1219. Symbolic Sequence

Java the best
Posted by TUITUF_Bahrom 8 Apr 2013 18:32
public class T_1219_Symbolic_Sequence {
public static void main(String[] args) {
PrintWriter pw= new PrintWriter(new OutputStreamWriter(System.out));
Random r= new Random();    char a[]=new char[30];    int k = 0 ;
  for (char j ='a'; j <='z'; j++)
     a[++k]=j;
    for (int i = 1; i <=1000000; i++)
        pw.print(a[r.nextInt(26)+1]);
    pw.close();
}
}