結果

問題 No.857 素振り
ユーザー fal_rnd
提出日時 2019-11-22 00:45:30
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 236 bytes
コンパイル時間 1,988 ms
コンパイル使用メモリ 74,752 KB
実行使用メモリ 55,812 KB
最終ジャッジ日時 2024-10-11 02:27:04
合計ジャッジ時間 3,975 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
	public static void main(String[] $) {
		Scanner s=new Scanner(System.in);
		int a=s.nextInt(),b=s.nextInt(),c=s.nextInt();
		int r=c;
		if(a<=c)
			--r;
		if(b<=c)
			--r;
		System.out.println(r);
	}
}
0