提交记录 18853
提交时间 |
评测时间 |
2022-12-29 19:59:09 |
2022-12-29 19:59:14 |
#include <bits/stdc++.h>
// noip17a
using i64 = int64_t;
using u32 = uint32_t;
using u64 = uint64_t;
#ifdef LOCAL
class IO {
public:
inline u64 operator()() {
int x;
std::cin >> x;
return x;
}
inline void operator()(u64 x, char c = ' ') {
std::cout << x << c << std::flush;
}
} io;
#else
class IO {
private:
char bufI[1 << 19], *ptrI = bufI, *endI = bufI + sizeof(bufI);
char bufO[1 << 19], *ptrO = bufO, *endO = bufO + sizeof(bufO);
public:
inline void load() {
memcpy(bufI, ptrI, endI - ptrI);
fread(endI - ptrI + bufI, 1, ptrI - bufI, stdin);
ptrI = bufI;
};
inline void flush() {
fwrite(bufO, 1, ptrO - bufO, stdout);
ptrO = bufO;
};
inline u64 operator()() {
if (endI - ptrI < 32) load();
u64 x{};
int n{};
for (; *ptrI < 48; ++ptrI) n = *ptrI == 45;
for (; *ptrI > 47; ++ptrI) x = x * 10 + *ptrI - 48;
return n ? -x : +x;
};
inline void operator()(u64 x, char c = ' ') {
if (endO - ptrO < 32) flush();
if (x < 0) x = -x, *ptrO++ = '-';
static char buf[21];
char *end = buf + 21;
char *ptr = buf + 21;
*--ptr = c;
for (; x >= 10; x /= 10)
*--ptr = char(48 + x % 10);
*--ptr = char(48 + x);
memcpy(ptrO, ptr, end - ptr);
ptrO += end - ptr;
};
IO() { fread(bufI, 1, sizeof(bufI), stdin); }
~IO() { flush(); }
} io;
#endif
int main() {
io((io() - 1) * (io() - 1) - 1, 10);
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 31.89 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #2 | 40.57 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #3 | 39.01 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #4 | 33.13 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #5 | 33.67 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #6 | 32.69 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #7 | 32.15 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #8 | 32.26 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #9 | 32.19 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #10 | 32.74 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #11 | 32.25 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #12 | 32.13 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #13 | 33.01 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #14 | 32.48 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #15 | 32.35 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #16 | 32.21 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #17 | 33.07 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #18 | 31.57 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #19 | 32.03 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Testcase #20 | 32.09 us | 44 KB | Accepted | Score: 5 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-12-05 09:42:15 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠