結果
| 問題 |
No.1 道のショートカット
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-18 13:19:43 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 617 bytes |
| コンパイル時間 | 3,007 ms |
| コンパイル使用メモリ | 83,224 KB |
| 実行使用メモリ | 56,280 KB |
| 最終ジャッジ日時 | 2024-07-08 05:25:32 |
| 合計ジャッジ時間 | 11,194 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 38 RE * 2 |
ソースコード
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int cityNum = sc.nextInt();
int money = sc.nextInt();
int roadNum = sc.nextInt();
List<Integer> cityS = new ArrayList<Integer>();
for (int i = 0; i < cityNum; i++) {
cityS.add(sc.nextInt());
}
// 標準出力に書き出す。
System.out.println("cityNum = " + cityNum);
System.out.println("money = " + money);
System.out.println("roadNum = " + roadNum);
System.out.println("cityS = " + cityS.toString());
}
}