結果

問題 No.666 1000000007で割るだけ
ユーザー annn_sainanannn_sainan
提出日時 2018-03-29 23:55:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 518 bytes
コンパイル時間 1,994 ms
コンパイル使用メモリ 104,132 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-09-08 06:50:50
合計ジャッジ時間 4,623 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,896 KB
testcase_01 AC 58 ms
20,876 KB
testcase_02 AC 57 ms
22,752 KB
testcase_03 AC 58 ms
20,664 KB
testcase_04 AC 58 ms
20,664 KB
testcase_05 AC 58 ms
20,812 KB
testcase_06 AC 57 ms
20,732 KB
testcase_07 AC 57 ms
20,860 KB
testcase_08 AC 58 ms
22,800 KB
testcase_09 AC 58 ms
20,772 KB
testcase_10 AC 58 ms
20,660 KB
testcase_11 AC 59 ms
20,816 KB
testcase_12 AC 57 ms
20,860 KB
testcase_13 AC 57 ms
20,860 KB
testcase_14 AC 57 ms
20,784 KB
testcase_15 AC 57 ms
18,592 KB
testcase_16 AC 58 ms
22,848 KB
testcase_17 AC 57 ms
20,812 KB
testcase_18 AC 57 ms
20,664 KB
testcase_19 AC 57 ms
20,820 KB
testcase_20 AC 58 ms
20,764 KB
testcase_21 AC 58 ms
20,652 KB
testcase_22 AC 57 ms
22,712 KB
testcase_23 AC 57 ms
20,656 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        long A;
        long B;
        long product;
        string str = Console.ReadLine();
        bool resultA = long.TryParse(str.Split(" ")[0], out A);
        bool resultB = long.TryParse(str.Split(" ")[1], out B);
        if (resultA && resultB) {
            product = ( A * B ) % 1000000007;
            Console.WriteLine(product);
        }
        else {
            Console.WriteLine("long型の数字入れて");
        }
    }
}
0