結果

問題 No.1841 Long Long
ユーザー sysnote8main
提出日時 2023-05-07 17:11:21
言語 Java
(openjdk 23)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 353 bytes
コンパイル時間 3,111 ms
コンパイル使用メモリ 75,848 KB
実行使用メモリ 54,468 KB
最終ジャッジ日時 2024-11-24 16:27:30
合計ジャッジ時間 5,832 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Repeat_String {
    public static String StrRepeater(int repeats, String msg) {
        return msg.repeat(Math.max(0, repeats));
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(StrRepeater(n,"Long"));
    }
}
0