結果

問題 No.2034 Anti Lexicography
ユーザー Vishant SandilyaVishant Sandilya
提出日時 2022-08-12 21:39:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 637 bytes
コンパイル時間 3,168 ms
コンパイル使用メモリ 74,740 KB
実行使用メモリ 57,476 KB
最終ジャッジ日時 2023-10-24 08:55:05
合計ジャッジ時間 5,545 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
53,428 KB
testcase_01 AC 52 ms
53,476 KB
testcase_02 AC 52 ms
53,480 KB
testcase_03 AC 52 ms
51,528 KB
testcase_04 AC 54 ms
52,440 KB
testcase_05 AC 117 ms
57,408 KB
testcase_06 AC 121 ms
57,476 KB
testcase_07 AC 120 ms
57,312 KB
testcase_08 AC 121 ms
57,384 KB
testcase_09 AC 121 ms
57,384 KB
testcase_10 AC 125 ms
57,316 KB
testcase_11 AC 120 ms
57,216 KB
testcase_12 AC 121 ms
57,256 KB
testcase_13 AC 53 ms
52,448 KB
testcase_14 AC 55 ms
53,492 KB
testcase_15 AC 55 ms
53,488 KB
testcase_16 AC 58 ms
52,448 KB
testcase_17 AC 55 ms
53,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package com.company.Algorithm.DP;
import java.io.*;
import java.util.*;
public class temp {
    public static void main(String[]args)throws IOException
    {
        BufferedReader buf =new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(buf.readLine());
        String p=buf.readLine();
        StringBuilder ams=new StringBuilder("");
        char[]est=p.toCharArray();
        //Arrays.sort(est);
        //System.out.println(Arrays.toString(est));
        for(char ch:est)
        {
            ams.append((char)('z'-(ch-'a')));
        }
        System.out.println(ams);
    }
}
0