文章列表

筛选

牛客竞赛题目——python

摘要:完全平方数 比赛主页 我的提交 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %ll……

字符串读取

摘要:#include<stdio.h>int main(){ char a[100]; int i=0,j=0,d=1; scanf("%c",&a[i]); i=1; while(d){     sca……

Sn公式求和;;;;;

摘要:#include<stdio.h>int main(){    int a=2,n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); for(i=0;i<n;i++){     f……

阶乘求和!!!!!

摘要:#include<stdio.h>int main(){    int n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); if(n<=20){     for(i=0;i<n;……

udp服务器编程系列0

摘要:udp 是一个面向无连接的,不安全的,报式传输层协议,udp 的通信过程默认也是阻塞的。   1、UDP通信不需要建立连接 ,因此不需要进行 connect () 操作   2、UDP通信过程中,每次……

有疑惑的题目

摘要:#### 待解决的问题 ###### 问题001 - 问题: 我们输入数字时都是用: `scanf("%d", &num);` 但是我们输入的不一定就是数字, 比如这里输入了一个字符‘a’, ……

udp服务器并发编程1

摘要:测试代码: #define _DEFAULT_SOURCE #include<arpa/inet.h> #include<unistd.h> #include<stdbool.h> #inc……