結果

問題 No.857 素振り
ユーザー fal_rndfal_rnd
提出日時 2019-11-22 00:46:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 1,000 ms
コード長 241 bytes
コンパイル時間 2,107 ms
コンパイル使用メモリ 74,016 KB
実行使用メモリ 54,304 KB
最終ジャッジ日時 2024-04-19 10:06:48
合計ジャッジ時間 3,343 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
54,152 KB
testcase_01 AC 110 ms
54,304 KB
testcase_02 AC 109 ms
53,980 KB
testcase_03 AC 109 ms
53,992 KB
testcase_04 AC 98 ms
52,680 KB
testcase_05 AC 108 ms
54,044 KB
testcase_06 AC 114 ms
54,036 KB
testcase_07 AC 106 ms
53,000 KB
testcase_08 AC 105 ms
52,712 KB
testcase_09 AC 103 ms
52,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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