結果

問題 No.857 素振り
ユーザー ks2mks2m
提出日時 2019-08-09 21:21:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 328 bytes
コンパイル時間 1,961 ms
コンパイル使用メモリ 71,600 KB
実行使用メモリ 56,240 KB
最終ジャッジ日時 2023-09-26 16:56:43
合計ジャッジ時間 4,161 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,088 KB
testcase_01 AC 125 ms
55,844 KB
testcase_02 AC 125 ms
55,952 KB
testcase_03 AC 126 ms
55,992 KB
testcase_04 AC 124 ms
56,240 KB
testcase_05 AC 125 ms
55,400 KB
testcase_06 AC 123 ms
56,064 KB
testcase_07 AC 127 ms
55,720 KB
testcase_08 AC 126 ms
55,784 KB
testcase_09 AC 125 ms
56,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		long x = sc.nextLong();
		long y = sc.nextLong();
		long z = sc.nextLong();
		sc.close();

		long ans = z;
		if (x <= z) ans--;
		if (y <= z) ans--;
		System.out.println(ans);
	}
}
0