結果

問題 No.857 素振り
ユーザー watarimaycry2watarimaycry2
提出日時 2020-03-30 18:21:32
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 894 bytes
コンパイル時間 2,054 ms
コンパイル使用メモリ 72,212 KB
実行使用メモリ 58,360 KB
最終ジャッジ日時 2023-09-04 13:19:14
合計ジャッジ時間 4,324 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
38,736 KB
testcase_01 AC 119 ms
39,116 KB
testcase_02 WA -
testcase_03 AC 123 ms
54,040 KB
testcase_04 AC 122 ms
55,180 KB
testcase_05 AC 122 ms
55,300 KB
testcase_06 AC 121 ms
55,388 KB
testcase_07 WA -
testcase_08 AC 122 ms
55,416 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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();
          if(Z >= X){
            Z--;
          }
          if(Z >= Y){
            Z--;
          }
          myout(Z);
        }
        //Method addition frame start

        //Method addition frame end
}
0