結果
問題 | No.400 鏡 |
ユーザー | yamax3232 |
提出日時 | 2018-03-19 13:16:25 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 129 ms / 2,000 ms |
コード長 | 403 bytes |
コンパイル時間 | 3,530 ms |
コンパイル使用メモリ | 73,484 KB |
実行使用メモリ | 56,040 KB |
最終ジャッジ日時 | 2023-08-30 03:35:34 |
合計ジャッジ時間 | 6,193 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 124 ms
53,792 KB |
testcase_01 | AC | 124 ms
55,832 KB |
testcase_02 | AC | 124 ms
55,764 KB |
testcase_03 | AC | 125 ms
55,824 KB |
testcase_04 | AC | 126 ms
55,876 KB |
testcase_05 | AC | 126 ms
56,036 KB |
testcase_06 | AC | 126 ms
55,460 KB |
testcase_07 | AC | 124 ms
55,740 KB |
testcase_08 | AC | 129 ms
55,820 KB |
testcase_09 | AC | 127 ms
55,760 KB |
testcase_10 | AC | 124 ms
55,928 KB |
testcase_11 | AC | 124 ms
56,040 KB |
ソースコード
import java.util.Scanner; public class Main2 { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner kb=new Scanner(System.in); String str1 =kb.next(); String str2=""; for(int i=str1.length()-1;i>=0;i--){ if(str1.charAt(i)=='>'){ str2+='<'; }else if(str1.charAt(i)=='<'){ str2+='>'; } } System.out.println(str2); } }