結果
問題 | No.965 門松列が嫌い |
ユーザー | ks2m |
提出日時 | 2020-01-13 20:41:09 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 461 bytes |
コンパイル時間 | 1,843 ms |
コンパイル使用メモリ | 71,188 KB |
実行使用メモリ | 49,564 KB |
最終ジャッジ日時 | 2023-08-23 13:12:18 |
合計ジャッジ時間 | 2,972 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
49,144 KB |
testcase_01 | AC | 43 ms
49,196 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 42 ms
49,336 KB |
testcase_05 | WA | - |
testcase_06 | AC | 43 ms
49,308 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 43 ms
49,344 KB |
ソースコード
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] sa = br.readLine().split(" "); int a = Integer.parseInt(sa[0]); int b = Integer.parseInt(sa[1]); int c = Integer.parseInt(sa[2]); br.close(); System.out.println(Math.min(Math.min(b - a, b - c), Math.abs(a - c))); } }