Accepted

foo.cc: In function 'int main()':
foo.cc:6:10: warning: statement has no effect [-Wunused-value]
    6 |         n<=3;
      |         ~^~~
foo.cc:8:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    8 |                 if(p=25*3*5%120!=0){
      |                    ~^~~~~~~~~~~~~~
foo.cc:16:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   16 |                 if(p=15*3*5%120!=0){
      |                    ~^~~~~~~~~~~~~~
foo.cc:24:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   24 |                 if(p=5*3*5%120!=0){
      |                    ~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 328.0 KiB
#3 Accepted 1ms 284.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 1ms 284.0 KiB
#6 Accepted 2ms 284.0 KiB
#7 Accepted 2ms 284.0 KiB
#8 Accepted 2ms 284.0 KiB
#9 Accepted 2ms 328.0 KiB
#10 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1005 至少要买几瓶止咳糖浆
语言
C++
递交时间
2023-05-20 18:43:42
评测时间
2023-05-20 18:43:42
评测机
分数
100
总耗时
21ms
峰值内存
328.0 KiB