結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-12 20:01:15 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 2,000 ms |
| + 422µs | |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 1,348 ms |
| コンパイル使用メモリ | 83,936 KB |
| 実行使用メモリ | 43,080 KB |
| 最終ジャッジ日時 | 2026-08-18 21:57:59 |
| 合計ジャッジ時間 | 3,103 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
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;
}
if(result==0){
result=10;
}
}
System.out.println(result);
sc.close();
}
}