結果

問題 No.857 素振り
ユーザー iwa_choco_168iwa_choco_168
提出日時 2019-12-02 22:38:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 1,000 ms
コード長 377 bytes
コンパイル時間 2,558 ms
コンパイル使用メモリ 75,028 KB
実行使用メモリ 54,124 KB
最終ジャッジ日時 2024-05-03 19:54:24
合計ジャッジ時間 3,370 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
53,900 KB
testcase_01 AC 104 ms
53,032 KB
testcase_02 AC 113 ms
54,072 KB
testcase_03 AC 98 ms
53,028 KB
testcase_04 AC 99 ms
53,092 KB
testcase_05 AC 106 ms
54,028 KB
testcase_06 AC 109 ms
54,008 KB
testcase_07 AC 111 ms
53,848 KB
testcase_08 AC 113 ms
54,068 KB
testcase_09 AC 109 ms
54,124 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