結果

問題 No.666 1000000007で割るだけ
コンテスト
ユーザー agatan
提出日時 2018-03-23 22:35:05
言語 C++14
(gcc 13.3.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 303 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 578 ms
コンパイル使用メモリ 71,308 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-24 21:49:43
合計ジャッジ時間 1,295 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <algorithm>
#include <functional>


using namespace std;

int main() {
    unsigned long long a, b;
    cin >> a >> b;
    unsigned long long x = 1000000007;
    cout << ((a % x) * (b % x)) % x << endl;
    return 0;
}
0