結果
問題 | No.692 square1001 and Permutation 1 |
ユーザー |
![]() |
提出日時 | 2019-02-19 17:18:25 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 131 ms / 2,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 2,157 ms |
コンパイル使用メモリ | 75,024 KB |
実行使用メモリ | 41,528 KB |
最終ジャッジ日時 | 2024-10-12 09:54:44 |
合計ジャッジ時間 | 3,900 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
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;}}