摘要:        
#本文仅在博客园发布,其他网站均为盗取,请自觉支持正版:https://www.cnblogs.com/jisuanjizhishizatan/p/15732439.html #前言 最近在学校里面看见有人写的代码出错了,如下: void dfs(int graph[][],int used[][]    阅读全文
        
            posted @ 2021-12-26 12:04
计算机知识杂谈
阅读(380)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
#include<stdio.h> int a[10],used[10]; int n=0; void dfs(int nth){ if(nth==n){ for(int i=0;i<n-1;i++)printf("%d,",a[i]); printf("%d\n",a[n-1]); return;    阅读全文
        
            posted @ 2021-12-26 10:31
计算机知识杂谈
阅读(49)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1.统计一个整数x中二进制1的个数 while(x){ if(x&1)k++; x>>=1; } while(x){ x-=x&-x; cnt++; } (x>>0&1) //0号位 (x>>1&1) //1号位 (x>>2&1) //2号位 //... for(int i=0;i<31;i++){    阅读全文
        
            posted @ 2021-12-26 07:57
计算机知识杂谈
阅读(66)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
a23 = a16 * a4 * a2 * a^1 res=a^1 res*=a^2 res*=a^4 res*=a^16 ... #include<bits/stdc++.h> #define ll long long using namespace std; int main(){ ll a,b    阅读全文
        
            posted @ 2021-12-26 07:57
计算机知识杂谈
阅读(36)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号