結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,764 KB
testcase_01 AC 58 ms
22,840 KB
testcase_02 AC 57 ms
18,728 KB
testcase_03 AC 57 ms
20,824 KB
testcase_04 AC 57 ms
22,768 KB
testcase_05 AC 57 ms
20,648 KB
testcase_06 AC 58 ms
22,760 KB
testcase_07 AC 59 ms
20,920 KB
testcase_08 AC 58 ms
22,752 KB
testcase_09 AC 58 ms
20,676 KB
testcase_10 AC 58 ms
20,748 KB
testcase_11 AC 59 ms
20,652 KB
testcase_12 AC 57 ms
20,760 KB
testcase_13 AC 58 ms
20,804 KB
testcase_14 AC 58 ms
20,660 KB
testcase_15 AC 58 ms
20,768 KB
testcase_16 AC 57 ms
20,764 KB
testcase_17 AC 57 ms
22,796 KB
testcase_18 AC 58 ms
20,740 KB
testcase_19 AC 58 ms
22,872 KB
testcase_20 AC 57 ms
20,816 KB
testcase_21 AC 57 ms
20,596 KB
testcase_22 AC 56 ms
20,920 KB
testcase_23 AC 57 ms
22,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace Kyogi1
{
    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