/ rignts /

记录详情

Time Exceeded

foo.cc: In function 'void init(int)':
foo.cc:34:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp[a[j]] > cnt || tmp[a[j]] == cnt && a[j] < cur) {
                           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int query(int, int)':
foo.cc:56:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:63:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:71:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:82:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &n, &q);
  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:83:50: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for (int i = 1; i <= n; i ++) scanf("%d", &a[i]), san[i] = a[i];
                                ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.cc:93:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d", &l, &r);
   ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 1.891 MiB
#2 Accepted 6ms 1.883 MiB
#3 Accepted 15ms 2.273 MiB
#4 Accepted 19ms 2.277 MiB
#5 Time Exceeded ≥1414ms ≥4.621 MiB
#6 Accepted 975ms 5.203 MiB
#7 Time Exceeded ≥1159ms ≥5.141 MiB
#8 Accepted 803ms 5.328 MiB
#9 Time Exceeded ≥1438ms ≥5.605 MiB
#10 Time Exceeded ≥1451ms ≥5.566 MiB
#11 Time Exceeded ≥1442ms ≥5.566 MiB
#12 Time Exceeded ≥1436ms ≥5.535 MiB
#13 Time Exceeded ≥1446ms ≥5.535 MiB
#14 Time Exceeded ≥1444ms ≥5.535 MiB
#15 Time Exceeded ≥1448ms ≥5.543 MiB
#16 Time Exceeded ≥1446ms ≥5.59 MiB
#17 Time Exceeded ≥1461ms ≥5.527 MiB
#18 Time Exceeded ≥1458ms ≥5.559 MiB
#19 Time Exceeded ≥1318ms ≥5.535 MiB
#20 Time Exceeded ≥1393ms ≥5.547 MiB

信息

递交者
类型
递交
题目
P1010 TEST01(pgy)
语言
C++
递交时间
2021-08-26 23:10:01
评测时间
2021-08-26 23:10:01
评测机
分数
30
总耗时
≥21590ms
峰值内存
≥5.605 MiB