結果

問題 No.857 素振り
ユーザー shigeki_create
提出日時 2019-08-15 02:35:55
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 3,644 ms
コンパイル使用メモリ 80,236 KB
実行使用メモリ 54,164 KB
最終ジャッジ日時 2024-09-19 14:46:07
合計ジャッジ時間 5,515 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other WA * 2 RE * 6
権限があれば一括ダウンロードができます

ソースコード

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 ? Z-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