結果

問題 No.857 素振り
ユーザー shigeki_createshigeki_create
提出日時 2019-08-15 02:38:23
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 410 bytes
コンパイル時間 2,333 ms
コンパイル使用メモリ 78,356 KB
実行使用メモリ 57,768 KB
最終ジャッジ日時 2023-10-19 18:26:45
合計ジャッジ時間 4,398 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
57,508 KB
testcase_01 AC 137 ms
57,500 KB
testcase_02 AC 137 ms
57,444 KB
testcase_03 AC 136 ms
57,232 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		int day = X <= Z ? Z-1 : Z;
		day = Y <= Z ? day-1 : day;
		println(day);
	}

	public static void print(Object o) {
		System.out.print(o);
	}

	public static void println(Object o) {
		System.out.println(o);
	}
}
0