結果

問題 No.481 1から10
ユーザー bellbell
提出日時 2021-02-12 19:58:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 376 bytes
コンパイル時間 3,784 ms
コンパイル使用メモリ 72,432 KB
実行使用メモリ 56,548 KB
最終ジャッジ日時 2023-09-27 01:07:24
合計ジャッジ時間 5,285 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,324 KB
testcase_01 AC 118 ms
55,716 KB
testcase_02 AC 119 ms
56,060 KB
testcase_03 AC 122 ms
55,760 KB
testcase_04 AC 120 ms
55,812 KB
testcase_05 AC 120 ms
56,008 KB
testcase_06 AC 119 ms
55,412 KB
testcase_07 AC 122 ms
55,388 KB
testcase_08 AC 119 ms
56,036 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int n=0;
        int result=0;

        for(int i=1; i<=9; i++){
            n=sc.nextInt();
        if(i != n){
            result=n-1;
            break;
        }
    }
        System.out.println(result);
            sc.close();
		}
    }
0