結果
| 問題 | No.1445 新入生プログラミング鯖 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-07 18:27:30 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 2,606 ms |
| コンパイル使用メモリ | 83,668 KB |
| 実行使用メモリ | 41,692 KB |
| 最終ジャッジ日時 | 2026-05-18 19:43:24 |
| 合計ジャッジ時間 | 4,618 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 10 |
ソースコード
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();
String rstr = "Hello! You're new here, right? It's nice to meet you.\n";
System.out.println(StrRepeater(n,rstr));
}
}