結果
| 問題 |
No.1445 新入生プログラミング鯖
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-07 18:27:30 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 432 bytes |
| コンパイル時間 | 3,107 ms |
| コンパイル使用メモリ | 74,672 KB |
| 実行使用メモリ | 54,548 KB |
| 最終ジャッジ日時 | 2024-11-24 18:02:00 |
| 合計ジャッジ時間 | 5,286 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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));
}
}