Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- import java.lang.*;
- import java.awt.*;
- import java.awt.geom.*;
- import java.math.*;
- import java.text.*;
- import java.math.BigInteger.*;
- import java.util.Arrays;
- public class adsfadsfqeq
- {
- BufferedReader in;
- StringTokenizer as;
- boolean nums[],nums2[];
- int[] nums1[];
- ArrayList < Integer > [] ar;
- Map<Integer,Integer > map = new HashMap<Integer, Integer>();
- public static void main (String[] args)
- {
- new adsfadsfqeq ();
- }
- public int GCD(int a, int b) {
- if (b==0) return a;
- return GCD(b,a%b);
- }
- public adsfadsfqeq ()
- {
- try
- {
- in = new BufferedReader (new InputStreamReader (System.in));
- FileWriter out = null;
- out = new FileWriter ("data" + ".txt");
- BufferedWriter bw = null;
- bw = new BufferedWriter(out);
- String a = "";
- for(int x = 0;x<50000;x++)
- {
- if(Math.random() < 0.60)
- a += 'a';
- else if(Math.random() < 0.5)
- a += 'x';
- else
- a += 'y';
- }
- bw.write(a +"\n");
- bw.close();
- out.close();
- }
- catch(Exception e)
- {
- }
- }
- String next () throws IOException
- {
- while (as == null || !as.hasMoreTokens ())
- {
- as = new StringTokenizer (in.readLine ().trim ());
- }
- return as.nextToken ();
- }
- long nextLong () throws IOException
- {
- return Long.parseLong (next ());
- }
- int nextInt () throws IOException
- {
- return Integer.parseInt (next ());
- }
- double nextDouble () throws IOException
- {
- return Double.parseDouble (next ());
- }
- String nextLine () throws IOException
- {
- return in.readLine ().trim ();
- }
- }
Add Comment
Please, Sign In to add comment