Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- public class Main {
- class $R {
- InputStream in; byte b; byte[] buf; int bi, bz;
- $R(InputStream I) { in=I; buf=new byte[65536]; bi=bz=0; read(); }
- void skip() { while (b >= 0 && b <= 32) read(); }
- void read() {
- if (bi==bz) {
- bi=0; try { bz=in.read(buf); } catch(Exception e) { bz=-1; } }
- b = bz == -1 ? -1 : buf[bi++]; }
- int nextInt() {
- int i=0; boolean s=false; skip();
- if (b == '-') { s=true; read(); }
- for (; b > 32; read()) i = i*10 + b-48; return s ? -i : i; }
- }
- class $W extends PrintWriter {
- $W() { super(new BufferedOutputStream(System.out)); }
- }
- void run() {
- $R $r = new $R(System.in);
- $W $w = new $W();
- int n = 0;
- while ( ( n = $r.nextInt() ) != 0 ) {
- int result = 42; // insert your logic here
- $w.println("f91(" + n + ") = " + result );
- }
- $w.close();
- }
- public static void main ( String[] args ) {
- new Main().run();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement