結果
問題 |
No.1680 Sum and Difference
|
ユーザー |
![]() |
提出日時 | 2024-05-17 09:05:13 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 554 bytes |
コンパイル時間 | 3,780 ms |
コンパイル使用メモリ | 273,380 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-20 11:34:47 |
合計ジャッジ時間 | 4,715 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 14 |
ソースコード
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> #include <atcoder/dsu> #include <atcoder/segtree> using namespace atcoder; using namespace std; typedef long long ll; #define rep(i,a,b) for(int i=a;i<b;i++) using vi = vector<int>; using vvi = vector<vi>; using li =vector<ll>; using lli=vector<li>; using si =vector<char>; using ssi =vector<si>; const long long INF = 1e18; const long long MOD=1e9+7; //for (auto [key, val] : mp) int main() { ll a,b;cin>>a>>b; ll AE,AO,BE,BO; AE=1+a/2*2;AO=(a+1)/2*2; BE=1+b/2*2;BO=(b+1)/2*2; cout<<(AE*BE+AO*BO)%MOD; }