結果

問題 No.857 素振り
ユーザー shinwisteria
提出日時 2019-08-30 09:26:10
言語 Java
(openjdk 23)
結果
AC  
実行時間 143 ms / 1,000 ms
コード長 305 bytes
コンパイル時間 4,366 ms
コンパイル使用メモリ 77,376 KB
実行使用メモリ 41,528 KB
最終ジャッジ日時 2024-11-19 08:00:46
合計ジャッジ時間 6,576 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con857 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		long X = s.nextLong() , Y = s.nextLong() , Z = s.nextLong();
		s.close();

		if(Y <= Z){
			Z--;
		}
		if(X <= Z){
			Z--;
		}
		System.out.println(Z);

	}

}
0