結果
| 問題 |
No.333 門松列を数え上げ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-19 17:34:18 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 120 ms / 2,000 ms |
| コード長 | 318 bytes |
| コンパイル時間 | 3,595 ms |
| コンパイル使用メモリ | 74,256 KB |
| 実行使用メモリ | 54,348 KB |
| 最終ジャッジ日時 | 2024-10-04 14:07:31 |
| 合計ジャッジ時間 | 5,473 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
package yukicorder;
import java.util.Scanner;
public class No333 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = 0;
if(b>a){
c = b - 2;
}else if(a>b){
c = 2000000000 - b - 1;
}
System.out.println(c);
}
}