結果

問題 No.857 素振り
ユーザー watarimaycry2watarimaycry2
提出日時 2020-03-30 18:25:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 936 bytes
コンパイル時間 3,673 ms
コンパイル使用メモリ 72,400 KB
実行使用メモリ 55,868 KB
最終ジャッジ日時 2023-09-04 13:50:00
合計ジャッジ時間 5,409 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,720 KB
testcase_01 AC 123 ms
55,776 KB
testcase_02 AC 124 ms
55,676 KB
testcase_03 AC 125 ms
55,388 KB
testcase_04 AC 123 ms
55,360 KB
testcase_05 AC 124 ms
55,632 KB
testcase_06 AC 123 ms
54,024 KB
testcase_07 AC 125 ms
55,664 KB
testcase_08 AC 125 ms
55,868 KB
testcase_09 AC 126 ms
55,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
        static Scanner sc = new Scanner(System.in);
        static void myout(Object t){System.out.println(t);}//standard output
        static void myerr(Object t){System.err.println(t);}//standard error
        static String getStr(){return sc.next();}
        static int getInt(){return Integer.parseInt(getStr());}
        static long getLong(){return Long.parseLong(getStr());}
        static boolean hasNext(){return sc.hasNext();}
        static char[] mySplit(String str){return str.toCharArray();}
        public static void main(String[] args){
          long X = getLong();
          long Y = getLong();
          long Z = getLong();
          long output = Z;
          if(Z >= X){
            output--;
          }
          if(Z >= Y){
            output--;
          }
          myout(output);
        }
        //Method addition frame start

        //Method addition frame end
}
0