/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:42:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 if(x>='a'&&x<='z'&&y<='z'&&y>='a'&&x<y||x>='0'&&x<='9'&&y>='0'&&y<='9'&&x<y){//满足条件 不输出'-' 输出两个字符的展开
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
foo.cc:35:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d%d%d",&p1,&p2,&p3);
 ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:36:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%s",a+1);
 ~~~~~^~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 408.0 KiB
#3 Accepted 1ms 400.0 KiB
#4 Accepted 1ms 436.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 404.0 KiB
#7 Accepted 2ms 408.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 404.0 KiB

信息

递交者
类型
递交
题目
P1379 字符串的展开
语言
C++
递交时间
2021-03-27 14:55:50
评测时间
2021-03-27 14:55:50
评测机
分数
100
总耗时
21ms
峰值内存
436.0 KiB