結果

問題 No.857 素振り
ユーザー iwa_choco_168iwa_choco_168
提出日時 2019-12-02 22:38:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 1,000 ms
コード長 377 bytes
コンパイル時間 1,897 ms
コンパイル使用メモリ 72,932 KB
実行使用メモリ 56,156 KB
最終ジャッジ日時 2023-08-16 11:24:13
合計ジャッジ時間 3,899 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,812 KB
testcase_01 AC 117 ms
56,112 KB
testcase_02 AC 116 ms
56,132 KB
testcase_03 AC 116 ms
56,156 KB
testcase_04 AC 117 ms
55,656 KB
testcase_05 AC 116 ms
55,668 KB
testcase_06 AC 116 ms
55,964 KB
testcase_07 AC 115 ms
55,904 KB
testcase_08 AC 116 ms
55,772 KB
testcase_09 AC 116 ms
56,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long x = Long.parseLong(sc.next());
        long y = Long.parseLong(sc.next());
        long z = Long.parseLong(sc.next());
        long ans = z;
        if(x <= z) ans--;
        if(y <= z) ans--;
        System.out.println(ans);
    }
}
0