这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
比如题目中的数据 ``` 5 31 1 2 8 4 16 ``` 如果m改成了100 ``` 5 100 1 2 8 4 16 ``` 他的钱不就不够了吗?
在讨论《为什么接水时间不算自己的?》回复:
可是为什么不算上自己的呀?第一次算错了
在讨论《为什么接水时间不算自己的?》回复:
(3\*2+4\*1)/3=3.33
在讨论《不懂错在哪,有没有人帮我看看?自己编译都是错的》回复:
错误在行末需要注意读取换行符,不然会被下一行的scanf读取掉会导致错误 ```cpp #include "stdio.h" #include "string.h" struct Dir{ int row,col; }dir[8]={ {-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},…
在讨论《求助,代码应该是挺清晰的,找不出错在哪》回复:
后来改对了,在一个地方算错掉调试出错误了 ```cpp #include "stdio.h" #include "string.h" bool isleapyear( int y ){ if( ( y%4==0 && y%100!=0) || y%400==0 ) return true; else return fa…
在讨论《excuse me?》回复:
@[野心qwq](/space/show?uid=96968) 对对对,错了错了,现在ac了,谢谢您!
在讨论《excuse me?》回复:
全wa!
```cpp #include "stdio.h" int a[100005]; int main(){ int n,x; scanf("%d%d",&n,&x); for( int i=1; i x ){ ans+=a[1]-x; a[1]=x; } for( int i=2; i x ){ ans+=a[i]+a[…
在讨论《全RE了求助》回复:
@[abs001](/space/show?uid=98468) 以后会长记性了^&^
在讨论《全RE了求助》回复:
@[abs001](/space/show?uid=98468) 谢谢!!
在讨论《全RE了求助》回复:
解决了
```cpp #include "stdio.h" #include "string.h" int s[30][30][30]; long long w( long long a, long long b, long long c){ if( a 20 || b>20 ||c>20) return w( 20, 20…
在讨论《求助,代码应该是挺清晰的,找不出错在哪》回复:
@[皮皮鳝](/space/show?uid=115482) 那位大佬的思路确实非常妙
在讨论《求助,代码应该是挺清晰的,找不出错在哪》回复:
@[皮皮鳝](/space/show?uid=115482) 可是第一次做我一下子不会想到大佬那样的骚操作。。我觉得我这么写的是去枚举所有可能出现的特殊情况,但是不知道哪里疏忽了。我把1、3、5、7、8、10月和12月和闰年的二月和不是闰年的二月这九种情况用if else分别判断考虑了
```cpp #include "stdio.h" #include "string.h" bool isleapyear( int y ){ if( ( y%4==0 && y%100!=0) || y%400==0 ) return true; else return false; } bool isleapmon…
在讨论《P2010 回文日期 为何只有60分,蒟蒻求助》回复:
闰年的判断是if((n1%4==0 && n1%100!=0) || n1%400==0)吧?
在讨论《不懂错在哪,有没有人帮我看看?自己编译都是错的》回复:
@[Koakuma](/space/show?uid=82494) 可以编译和运行,但是结果是错的,我一直找不出代码哪儿写错了所以来这儿请教
在讨论《不懂错在哪,有没有人帮我看看?自己编译都是错的》回复:
```cpp #include "stdio.h" #include "string.h" struct Dir{ int row,col; }dir[8]={ {-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1} }; int n,m; char a[105][1…
#include "stdio.h" #include "string.h" struct Dir{ int row,col; }dir[8]={ {-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1} }; int n,m; char a[105][105]; in…