結果

問題 No.400 鏡
ユーザー FVRChanFVRChan
提出日時 2017-10-03 09:52:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 394 bytes
コンパイル時間 1,823 ms
コンパイル使用メモリ 75,484 KB
実行使用メモリ 54,180 KB
最終ジャッジ日時 2024-04-27 22:37:08
合計ジャッジ時間 3,731 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
53,048 KB
testcase_01 AC 118 ms
54,016 KB
testcase_02 AC 106 ms
52,748 KB
testcase_03 AC 114 ms
54,028 KB
testcase_04 AC 111 ms
52,900 KB
testcase_05 AC 105 ms
53,440 KB
testcase_06 AC 104 ms
53,112 KB
testcase_07 AC 113 ms
54,180 KB
testcase_08 AC 112 ms
54,056 KB
testcase_09 AC 111 ms
54,020 KB
testcase_10 AC 99 ms
53,060 KB
testcase_11 AC 111 ms
53,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		char c[]=sc.nextLine().toCharArray(),d[]=new char[c.length];
		for(int i=0;i<c.length;i++){
			d[c.length-i-1]=c[i];
		}for(int i=0;i<d.length;i++){
			if(d[i]=='<')d[i]='>';
			else d[i]='<';
		}System.out.println(String.valueOf(d));
	}
}
0