結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-12 19:58:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 376 bytes |
| コンパイル時間 | 2,071 ms |
| コンパイル使用メモリ | 73,896 KB |
| 実行使用メモリ | 41,164 KB |
| 最終ジャッジ日時 | 2024-07-19 18:46:23 |
| 合計ジャッジ時間 | 3,468 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 1 |
ソースコード
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();
}
}