/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
    9 |       printf("%I64d",(long long)m*(long long)m+(long long)n*(long long)n);
      |               ~~~~^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                   |                           |
      |                   int                         long long int
      |               %I64lld
foo.cc:4:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    4 |         scanf("%d",&k);
      |         ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2, expect 2. 0ms 256.0 KiB
#2 Wrong Answer Read 1346269, expect 1346269. 1ms 256.0 KiB
#3 Wrong Answer Read 1134903170, expect 1134903170. 1ms 256.0 KiB
#4 Wrong Answer Read -1055680967, expect 956722026041. 0ms 256.0 KiB
#5 Wrong Answer Read -1055680967, expect 956722026041. 1ms 256.0 KiB
#6 Wrong Answer Read -188547518, expect 117669030460994. 1ms 256.0 KiB
#7 Wrong Answer Read 1845853122, expect 2111485077978050. 1ms 256.0 KiB
#8 Wrong Answer Read -1036647147, expect 5527939700884757. 1ms 256.0 KiB
#9 Wrong Answer Read -1691007710, expect 679891637638612258. 1ms 256.0 KiB
#10 Wrong Answer Read -1691007710, expect 679891637638612258. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1543 极值问题
语言
C++
递交时间
2022-07-19 17:45:00
评测时间
2022-07-19 17:45:00
评测机
分数
0
总耗时
12ms
峰值内存
256.0 KiB