結果

問題 No.857 素振り
ユーザー watarimaycry2
提出日時 2020-03-30 18:25:45
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 936 bytes
コンパイル時間 2,415 ms
コンパイル使用メモリ 75,048 KB
実行使用メモリ 54,280 KB
最終ジャッジ日時 2024-06-22 12:15:13
合計ジャッジ時間 4,782 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

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