这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《最后一个报错,请问数据是什么?》回复:
@[justinjia](/user/373226) 感恩 贴一下我的解决办法 ``` while(next_permutation(a+1,a+10)){ int n=a[9]*100+a[8]*10+a[7]; int m=a[6]*100+a[5]*10+a[4]; int i=a[3]*100+a[2]*10+…
``` #include using namespace std; struct ll{ int o,p; }x[10000]; bool cmp(ll a,ll b) { if(a.p>b.p) return 0; else return 1; } int main() { long long n,s,a,b,num…
``` #include using namespace std; bool a[1000][1000]; int n; void shemian(int x1,int y1,int x2,int y2) { if(x1==x2&&y1==y2) return; int hx=(x1+x2)/2,hy=(y1+y2)/…
``` #include using namespace std; int main() { int n,m; string a; cin>>n; getchar(); getline(cin,a); cin>>m; int num=0; for(int i=0;i 10) num+=(a[i]-'A'+10)*pow…
在讨论《最后一个报错,请问数据是什么?》回复:
没次数了orz
在讨论《75分sort求助》回复:
好吧 。。。。直接重写比较好
代码如下 ```cpp #include #define INF 5e9 using namespace std; struct c{ int x; int y; }b[10000]; bool cmp(c a,c b) { if(a.x>b.x) return 1; else return 0; } int main…
在讨论《C语言,我咋是个正的三角形?》回复:
@[VIVIENNE_424](/user/386548) 没有啊,我的就AC了 ??黑人问号??
```cpp #include using namespace std; int n,a[100000]; int c; bool check(int mid) { int num=1; int tot=1; for(int i=1;i =mid) { tot++; num=i; } } if(tot>=c) retu…
在讨论《60分求助,大佬加油?》回复:
~~蒟蒻大汗~~ 还是自己没看清题目 最后no lucky 后的数字输出的有问题 ~~原来是输出0啊~~ **谢谢各位给出的思路**
```cpp #include using namespace std; bool panduan(int x) { if(x 0&&b[i]>da) da=b[i]; if(b[i]>0&&b[i]<xiao) xiao=b[i]; } if(da==0||xiao==1000) { da=xiao=0; } if(…
在讨论《快排求助》回复:
谢谢各位,已经AC了
不知道为什么wrong answer 60分求助 ```cpp #include using namespace std; int main() { long long n,m,a[100000]; cin>>n>>m; for(int i=0;i >a[i]; } sort(a,a+m); for(int i=0;i…
在讨论《为什么本地没问题提交却全WA?》回复:
还有就是,你的程序还是有一个错误,身为蒟蒻,还是帮你暴力改了一下 ``` #include #define MAXN 10050 using namespace std; int main() { string a, b; string sum; cin>>a>>b; int na[MAXN]={0},nb[MAXN]…
在讨论《为什么本地没问题提交却全WA?》回复:
不要用getline 这样只能整行输入,题目中是用空格来区分的,输入格式可以是 ``` cin>>a>>b ```
在讨论《C语言,我咋是个正的三角形?》回复:
``` #include int main() { int i,n; int j; int num=1; scanf("%d",&n); for ( i = n; i >0; i--) { for ( j = i; j >0; j--) { if(num<10) printf("0%d",num); else prin…