結果
| 問題 |
No.666 1000000007で割るだけ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-10 03:15:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 297 bytes |
| コンパイル時間 | 2,041 ms |
| コンパイル使用メモリ | 192,732 KB |
| 最終ジャッジ日時 | 2025-01-14 09:06:54 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
const ull MOD = 1000000007;
void solve() {
ull a, b, ans;
cin >> a >> b;
a %= MOD;
b %= MOD;
ans = a * b % MOD;
cout << ans << endl;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
solve();
}