結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2017-02-10 22:28:41 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 6,769 ms |
コンパイル使用メモリ | 74,072 KB |
実行使用メモリ | 41,416 KB |
最終ジャッジ日時 | 2024-12-28 06:37:36 |
合計ジャッジ時間 | 6,091 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 8 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); boolean b = true; for(int i=1; i<=10; i++){ int tmp = sc.nextInt(); if(b&&tmp!=i){ System.out.println(i); b=false; } } } }