結果

問題 No.591 (^o^)/
ユーザー fal_rndfal_rnd
提出日時 2017-11-11 02:32:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 2,282 bytes
コンパイル時間 2,690 ms
コンパイル使用メモリ 82,076 KB
実行使用メモリ 39,976 KB
最終ジャッジ日時 2024-05-03 15:19:45
合計ジャッジ時間 3,923 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
39,808 KB
testcase_01 AC 88 ms
39,900 KB
testcase_02 AC 92 ms
39,976 KB
testcase_03 AC 88 ms
39,908 KB
testcase_04 AC 86 ms
39,636 KB
testcase_05 AC 89 ms
38,140 KB
testcase_06 AC 87 ms
39,796 KB
testcase_07 AC 85 ms
38,296 KB
testcase_08 AC 86 ms
39,764 KB
testcase_09 AC 87 ms
38,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.stream.IntStream;

class Main{
	static class System{
		private static final InputStream in=java.lang.System.in;
		private static final PrintWriter out=new PrintWriter(java.lang.System.out,false);
	}
	public static void main(String[]$) throws IOException{
		new Main().solve();
		System.out.flush();
	}
	static FastScanner s=new FastScanner(System.in);
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static int gInt() throws IOException{return s.nextInt();}
	static long gLong() throws IOException{return s.nextLong();}
	static long gDouble() throws IOException{return s.nextLong();}

	private void solve() throws IOException{
		String a=s.next(),b=s.next();
		System.out.println("("+a+b+a+")/");
	}

	private static class FastScanner{
		private final BufferedInputStream	in;
		private static final int			bufSize	=1<<16;
		private final byte					buf[]	=new byte[bufSize];
		private int							i		=bufSize;
		private int							k		=bufSize;
		private final StringBuilder			str		=new StringBuilder();

		FastScanner(InputStream in){
			this.in=new BufferedInputStream(in,bufSize);
		}
		int nextInt() throws IOException{
			return (int)nextLong();
		}
		long nextLong() throws IOException{
			int c;
			long x=0;
			boolean sign=true;
			while((c=nextChar())<=32)
				;
			if(c=='-'){
				sign=false;
				c=nextChar();
			}
			if(c=='+'){
				c=nextChar();
			}
			while(c>='0'){
				x=x*10+(c-'0');
				c=nextChar();
			}
			return sign?x:-x;
		}
		int nextChar() throws IOException{
			if(i==k){
				k=in.read(buf,0,bufSize);
				i=0;
			}
			return i>=k?-1:buf[i++];
		}
		String next() throws IOException{
			int c;
			str.setLength(0);
			while((c=nextChar())<=32&&c!=-1)
				;
			if(c==-1){
				return null;
			}
			while(c>32){
				str.append((char)c);
				c=nextChar();
			}
			return str.toString();
		}
		String nextLine() throws IOException{
			int c;
			str.setLength(0);
			while((c=nextChar())<=32&&c!=-1)
				;
			if(c==-1){
				return null;
			}
			while(c!='\n'){
				str.append((char)c);
				c=nextChar();
			}
			return str.toString();
		}
	}
}
0