結果

問題 No.857 素振り
ユーザー GodNegoto
提出日時 2019-11-07 16:20:46
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 395 bytes
コンパイル時間 3,433 ms
コンパイル使用メモリ 74,068 KB
実行使用メモリ 41,232 KB
最終ジャッジ日時 2024-09-15 00:41:56
合計ジャッジ時間 5,394 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

package algo;

import java.util.Scanner;

//import algo.*;

public class sample7 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		long X = sc.nextLong();
		long Y = sc.nextLong();
		long Z = sc.nextLong();
		long cnt = Z;
		
		if(Z >= X) {
			cnt -= 1;
			}
		if(Z >= Y) {
			cnt -= 1;
		}
		System.out.println(cnt);
	}
}
0