結果

問題 No.692 square1001 and Permutation 1
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2019-02-19 17:18:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 2,072 ms
コンパイル使用メモリ 74,108 KB
実行使用メモリ 41,300 KB
最終ジャッジ日時 2024-04-20 14:22:46
合計ジャッジ時間 3,266 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
41,300 KB
testcase_01 AC 103 ms
39,972 KB
testcase_02 AC 110 ms
40,300 KB
testcase_03 AC 100 ms
39,896 KB
testcase_04 AC 99 ms
40,000 KB
testcase_05 AC 112 ms
41,096 KB
testcase_06 AC 93 ms
39,564 KB
testcase_07 AC 108 ms
40,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(getWinnerName(n));
    }
    
    static String getWinnerName(int n) {
        String First = "Petr";
        String Second = "square1001";
        if(n == 1) return Second;
        return First;
    }
}
0