結果

問題 No.857 素振り
ユーザー ks2m
提出日時 2019-08-09 21:21:53
言語 Java
(openjdk 23)
結果
AC  
実行時間 135 ms / 1,000 ms
コード長 328 bytes
コンパイル時間 2,207 ms
コンパイル使用メモリ 73,948 KB
実行使用メモリ 41,508 KB
最終ジャッジ日時 2024-07-19 10:58:39
合計ジャッジ時間 3,923 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

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