結果
問題 |
No.666 1000000007で割るだけ
|
ユーザー |
|
提出日時 | 2018-06-09 21:34:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 370 ms / 2,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 1,299 ms |
コンパイル使用メモリ | 63,104 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 13:03:06 |
合計ジャッジ時間 | 2,069 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }