/ WHOJ /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:15:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   15 | freopen("gem.in","r",stdin);
      | ~~~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:16:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   16 |  freopen("gem.out","w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   17 |  scanf("%lld",&T);
      |  ~~~~~^~~~~~~~~~~
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   21 |   scanf("%lld%lld%lld",&n,&t,&k);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:23:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   23 |    scanf("%lld",&a[i].place);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:25:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |    scanf("%lld",&a[i].value);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 8ms 384.0 KiB
#4 Time Exceeded ≥1098ms ≥6.074 MiB
#5 Time Exceeded ≥1101ms ≥6.242 MiB
#6 Accepted 493ms 6.242 MiB
#7 Accepted 3ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Wrong Answer Read 6, expect 4. 2ms 384.0 KiB
#10 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1423 宝石(文件IO)
题目数据
下载
语言
C++
递交时间
2022-07-29 23:10:17
评测时间
2022-07-29 23:10:17
评测机
分数
70
总耗时
≥2723ms
峰值内存
≥6.242 MiB