結果

問題 No.857 素振り
ユーザー shigeki_createshigeki_create
提出日時 2019-08-15 02:39:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 417 bytes
コンパイル時間 2,150 ms
コンパイル使用メモリ 74,808 KB
実行使用メモリ 57,604 KB
最終ジャッジ日時 2023-10-19 18:26:50
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
57,500 KB
testcase_01 AC 136 ms
57,436 KB
testcase_02 AC 135 ms
57,496 KB
testcase_03 AC 137 ms
57,512 KB
testcase_04 AC 136 ms
57,500 KB
testcase_05 AC 136 ms
57,500 KB
testcase_06 AC 136 ms
57,572 KB
testcase_07 AC 137 ms
57,440 KB
testcase_08 AC 135 ms
57,472 KB
testcase_09 AC 138 ms
57,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

		long X = sc.nextLong();
		long Y = sc.nextLong();
		long Z = sc.nextLong();

		long 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