結果

問題 No.857 素振り
ユーザー htensaihtensai
提出日時 2019-11-11 13:54:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 111 ms / 1,000 ms
コード長 323 bytes
コンパイル時間 3,393 ms
コンパイル使用メモリ 70,948 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-10-13 08:02:18
合計ジャッジ時間 4,809 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
56,108 KB
testcase_01 AC 110 ms
56,052 KB
testcase_02 AC 109 ms
56,260 KB
testcase_03 AC 108 ms
55,644 KB
testcase_04 AC 108 ms
55,820 KB
testcase_05 AC 109 ms
56,304 KB
testcase_06 AC 107 ms
55,784 KB
testcase_07 AC 108 ms
56,024 KB
testcase_08 AC 107 ms
55,740 KB
testcase_09 AC 107 ms
55,832 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 count = z;
		if (x <= z) {
		    count--;
		}
		if (y <= z) {
		    count--;
		}
		System.out.println(count);
	}
}
0