結果

問題 No.1035 Color Box
ユーザー watarimaycry2watarimaycry2
提出日時 2020-04-24 21:45:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 1,048 bytes
コンパイル時間 2,174 ms
コンパイル使用メモリ 75,312 KB
実行使用メモリ 55,864 KB
最終ジャッジ日時 2024-04-23 03:08:08
合計ジャッジ時間 8,026 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
52,748 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 125 ms
53,972 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 131 ms
53,964 KB
testcase_20 AC 121 ms
54,020 KB
testcase_21 AC 121 ms
54,108 KB
testcase_22 AC 123 ms
54,560 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 124 ms
53,900 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 127 ms
53,868 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 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();}
        static String toKaigyo(String[] list){return String.join("\n",list);}
        static String toHanSp(String[] list){return String.join(" ",list);}
        public static void main(String[] args){
          long N = getLong();
          long output = 1;
          final int mod = 1000000007;
          for(int i = 1; i <= N; i++){
            output = (output * i) % mod;
          }
          myout(output);
        }
        //Method addition frame start

        //Method addition frame end
}
0