QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#534184 | #1488. Hexagonal Territory | otarius | 3 | 0ms | 4064kb | C++14 | 1.5kb | 2024-08-26 21:48:15 | 2024-08-26 21:48:15 |
answer
// #include "hexagon.h"
#include <bits/stdc++.h>
#include <bits/extc++.h>
using namespace __gnu_pbds;
using namespace std;
// #pragma GCC optimize("Ofast")
// #pragma GCC optimize ("unroll-loops")
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define ff first
#define sc second
#define pb push_back
#define ll long long
#define pll pair<ll, ll>
#define pii pair<int, int>
#define ull unsigned long long
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
// #define int long long
// #define int unsigned long long
// #define ordered_set(T) tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>
// #define ordered_multiset(T) tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>
void open_file(string filename) {
freopen((filename + ".in").c_str(), "r", stdin);
freopen((filename + ".out").c_str(), "w", stdout);
}
const ll mod = 1e9 + 7;
// const ll mod = 998244353;
const ll inf = 1e9;
const ll biginf = 1e18;
const int maxN = 2 * 1e5 + 25;
int draw_territory(int n, int a, int b, vector<int> d, vector<int> l) {
return 1LL * (l[0] + 1) * (l[0] + 2) / 2 % mod * a % mod;
}
// int main() {
// int N, A, B;
// assert(3 == scanf("%d %d %d", &N, &A, &B));
// std::vector<int> D(N), L(N);
// for (int i = 0; i < N; ++i) {
// assert(2 == scanf("%d %d", &D[i], &L[i]));
// }
// int result = draw_territory(N, A, B, D, L);
// printf("%d\n", result);
// return 0;
// }
詳細信息
Subtask #1:
score: 3
Accepted
Test #1:
score: 3
Accepted
time: 0ms
memory: 3860kb
input:
4279751dd9ece9095f11fb277ecbef2e68be1cdf 3 218342485 0 5 333333333 3 333333333 1 333333333
output:
0a7385ba87a80c36d1403904d6d65e155ddd6e9c OK 676856940
result:
ok 3 lines
Test #2:
score: 3
Accepted
time: 0ms
memory: 3788kb
input:
4279751dd9ece9095f11fb277ecbef2e68be1cdf 3 145264397 0 5 333333019 1 333333019 3 333333019
output:
0a7385ba87a80c36d1403904d6d65e155ddd6e9c OK 984530466
result:
ok 3 lines
Subtask #2:
score: 0
Wrong Answer
Dependency #1:
100%
Accepted
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3788kb
input:
4279751dd9ece9095f11fb277ecbef2e68be1cdf 3 54863579 873567906 6 333333333 4 333333333 2 333333333
output:
0a7385ba87a80c36d1403904d6d65e155ddd6e9c OK 141590878
result:
wrong answer 3rd lines differ - expected: '908437402', found: '141590878'
Subtask #3:
score: 0
Wrong Answer
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 4048kb
input:
4279751dd9ece9095f11fb277ecbef2e68be1cdf 16 313541282 142095086 2 132 3 88 1 88 6 176 4 88 5 132 4 44 5 44 4 176 2 88 3 44 2 44 1 44 6 88 1 44 2 44
output:
0a7385ba87a80c36d1403904d6d65e155ddd6e9c OK 966344351
result:
wrong answer 3rd lines differ - expected: '350557847', found: '966344351'
Subtask #4:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #3:
0%
Subtask #5:
score: 0
Wrong Answer
Test #37:
score: 0
Wrong Answer
time: 0ms
memory: 4064kb
input:
4279751dd9ece9095f11fb277ecbef2e68be1cdf 4 909002023 0 1 185641973 3 185641973 4 185641973 6 185641973
output:
0a7385ba87a80c36d1403904d6d65e155ddd6e9c OK 255120489
result:
wrong answer 3rd lines differ - expected: '771770079', found: '255120489'
Subtask #6:
score: 0
Skipped
Dependency #3:
0%
Subtask #7:
score: 0
Wrong Answer
Test #69:
score: 0
Wrong Answer
time: 0ms
memory: 3796kb
input:
4279751dd9ece9095f11fb277ecbef2e68be1cdf 10 847636098 451332246 3 70482074 4 70482074 4 70482074 6 70482074 5 70482074 6 70482074 1 70482074 1 70482074 2 70482074 3 70482074
output:
0a7385ba87a80c36d1403904d6d65e155ddd6e9c OK 324067240
result:
wrong answer 3rd lines differ - expected: '964783126', found: '324067240'
Subtask #8:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
0%