結果

問題 No.857 素振り
ユーザー shinwisteriashinwisteria
提出日時 2019-08-30 09:26:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 1,000 ms
コード長 305 bytes
コンパイル時間 3,407 ms
コンパイル使用メモリ 74,092 KB
実行使用メモリ 41,356 KB
最終ジャッジ日時 2024-04-29 23:04:04
合計ジャッジ時間 5,762 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,272 KB
testcase_01 AC 141 ms
41,216 KB
testcase_02 AC 139 ms
40,892 KB
testcase_03 AC 132 ms
40,968 KB
testcase_04 AC 141 ms
41,356 KB
testcase_05 AC 140 ms
41,296 KB
testcase_06 AC 140 ms
41,260 KB
testcase_07 AC 140 ms
41,268 KB
testcase_08 AC 135 ms
41,176 KB
testcase_09 AC 125 ms
39,892 KB
権限があれば一括ダウンロードができます

ソースコード

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