結果

問題 No.666 1000000007で割るだけ
ユーザー algon_320algon_320
提出日時 2018-03-23 22:35:02
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 1,024 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,808 KB
実行使用メモリ 8,840 KB
最終ジャッジ日時 2023-09-07 03:08:14
合計ジャッジ時間 1,978 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,836 KB
testcase_01 AC 19 ms
8,676 KB
testcase_02 AC 20 ms
8,836 KB
testcase_03 AC 20 ms
8,772 KB
testcase_04 AC 21 ms
8,756 KB
testcase_05 AC 20 ms
8,752 KB
testcase_06 AC 20 ms
8,840 KB
testcase_07 AC 20 ms
8,744 KB
testcase_08 AC 20 ms
8,824 KB
testcase_09 AC 20 ms
8,756 KB
testcase_10 AC 20 ms
8,824 KB
testcase_11 AC 20 ms
8,776 KB
testcase_12 AC 20 ms
8,840 KB
testcase_13 AC 20 ms
8,808 KB
testcase_14 AC 20 ms
8,772 KB
testcase_15 AC 20 ms
8,824 KB
testcase_16 AC 20 ms
8,756 KB
testcase_17 AC 21 ms
8,644 KB
testcase_18 AC 20 ms
8,760 KB
testcase_19 AC 20 ms
8,836 KB
testcase_20 AC 20 ms
8,684 KB
testcase_21 AC 20 ms
8,836 KB
testcase_22 AC 20 ms
8,744 KB
testcase_23 AC 20 ms
8,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from collections import deque
import heapq
from collections import Counter
import math

# ------------------------------------------------------
class IN:
    @staticmethod
    def singleInt():
        return int(input())

    @staticmethod
    def singleStr():
        return input()

    @staticmethod
    def listInt():
        return list(map(int, input().split()))

    @staticmethod
    def listStr():
        return input().split()
# ------------------------------------------------------

print = lambda s: sys.stdout.write(str(s) + "\r\n")

def contain(c, x):
    return (x in c)

def str_reverse(s):
    return s[::-1]

def ctoi(c):
    return int.from_bytes(c.encode(), byteorder='big')
def itoc(x):
    return x.to_bytes((x.bit_length() + 7) // 8, byteorder='big').decode()

INF = 1001001001001001001
# ------------------------------------------------------

MOD = 1000000007

if __name__ == '__main__':
    A, B = IN.listInt()
    print(A * B % MOD)



0