/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int pd1()':
/in/foo.cc:12:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
    if (p%i == 0 && q%i == 0)
       ^
/in/foo.cc:21:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
    if (p%i == 0 && q%i == 0)
       ^
/in/foo.cc: In function 'int pd2()':
/in/foo.cc:34:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
    if (j%p == 0 && j%q == 0)
       ^
/in/foo.cc:43:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
    if (j%p == 0 && j%q == 0)
       ^
/in/foo.cc: In function 'int pd1()':
/in/foo.cc:27:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int pd2()':
/in/foo.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 312.0 KiB
#2 Wrong Answer 2ms 336.0 KiB
#3 Time Exceeded ≥1000ms ≥216.0 KiB
#4 Time Exceeded ≥1000ms ≥228.0 KiB
#5 Wrong Answer 993ms 328.0 KiB

信息

递交者
类型
递交
题目
P1131 最小公倍数和最大公约数问题
语言
C++
递交时间
2020-04-12 18:57:54
评测时间
2020-04-12 18:57:54
评测机
分数
0
总耗时
≥3002ms
峰值内存
≥336.0 KiB