結果

問題 No.666 1000000007で割るだけ
ユーザー annn_sainanannn_sainan
提出日時 2018-03-30 00:01:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 521 bytes
コンパイル時間 3,241 ms
コンパイル使用メモリ 101,320 KB
実行使用メモリ 22,788 KB
最終ジャッジ日時 2023-09-08 06:51:50
合計ジャッジ時間 5,325 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
18,560 KB
testcase_01 AC 56 ms
20,740 KB
testcase_02 AC 57 ms
20,668 KB
testcase_03 AC 58 ms
20,624 KB
testcase_04 AC 57 ms
20,712 KB
testcase_05 AC 57 ms
22,620 KB
testcase_06 AC 57 ms
20,612 KB
testcase_07 AC 56 ms
20,836 KB
testcase_08 AC 57 ms
20,664 KB
testcase_09 AC 57 ms
20,508 KB
testcase_10 AC 58 ms
20,512 KB
testcase_11 AC 58 ms
18,524 KB
testcase_12 AC 57 ms
18,728 KB
testcase_13 AC 57 ms
22,788 KB
testcase_14 AC 58 ms
20,560 KB
testcase_15 AC 57 ms
20,740 KB
testcase_16 AC 58 ms
20,672 KB
testcase_17 AC 57 ms
20,632 KB
testcase_18 AC 57 ms
22,584 KB
testcase_19 AC 57 ms
20,608 KB
testcase_20 AC 56 ms
20,616 KB
testcase_21 AC 57 ms
20,552 KB
testcase_22 AC 56 ms
20,716 KB
testcase_23 AC 57 ms
20,588 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