結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-29 23:42:57 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 535 bytes |
| コンパイル時間 | 4,616 ms |
| コンパイル使用メモリ | 75,184 KB |
| 実行使用メモリ | 41,452 KB |
| 最終ジャッジ日時 | 2024-10-06 08:34:41 |
| 合計ジャッジ時間 | 4,700 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 8 |
ソースコード
import java.util.Scanner;
// https://yukicoder.me/problems/no/481
public class OneToTen481 {
public static void main(String[] args) {
// 標準入力から読み込む際に、Scan
Scanner sc = new Scanner(System.in);
// String 1つ分を読み込む
int result = 0;
int n = 0;
while (n < 10) {
int s1 = Integer.parseInt(sc.next());
n += 1;
if (s1 - n > 0 && result == 0) {
// 標準出力に書き出す。
result = n;
}
}
System.out.println(result);
}
}