結果

問題 No.400 鏡
ユーザー FVRChanFVRChan
提出日時 2017-10-03 09:52:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 394 bytes
コンパイル時間 1,957 ms
コンパイル使用メモリ 72,240 KB
実行使用メモリ 39,960 KB
最終ジャッジ日時 2023-08-10 05:17:52
合計ジャッジ時間 4,126 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
39,512 KB
testcase_01 AC 102 ms
38,992 KB
testcase_02 AC 103 ms
38,876 KB
testcase_03 AC 113 ms
39,552 KB
testcase_04 AC 106 ms
39,236 KB
testcase_05 AC 105 ms
39,480 KB
testcase_06 AC 105 ms
39,376 KB
testcase_07 AC 103 ms
39,464 KB
testcase_08 AC 104 ms
39,376 KB
testcase_09 AC 118 ms
39,404 KB
testcase_10 AC 108 ms
39,076 KB
testcase_11 AC 107 ms
39,960 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