結果
| 問題 | No.666 1000000007で割るだけ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-09 21:34:05 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 151 ms / 2,000 ms |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 554 ms |
| コンパイル使用メモリ | 74,160 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-20 12:56:32 |
| 合計ジャッジ時間 | 1,514 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include <iostream>
typedef long long ll;
using namespace std;
#define NUM 1000000007
ll num1, num2;
int main(){
cin >> num1 >> num2;
while(num1>NUM) num1 -= NUM;
while(num2>NUM) num2 -= NUM;
ll ans = num1*num2;
while(ans>NUM) ans -= NUM;
cout << ans << endl;
}