码迷,mamicode.com
首页 >  
搜索关键字:状态机 有穷自动机 printf    ( 16150个结果
P5327 [ZJOI2019]语言
一边写草稿一边做题吧。要看题解的往下翻,或者是旁边的导航跳一下。 草稿 因为可以开展贸易活动的条件是存在一种通用语 \(L\) 满足 \(u_i\) 到 \(v_i\) 的最短路径上都会 \(L\) 。所以我们考虑能够带来贡献的,只有同一次传教。 但是很有可能在进行当前这一次传教过程中,中间的两座城 ...
分类:编程语言   时间:2020-11-23 12:39:51    阅读次数:19
交换值 最基础
交换值#include<stdio.h>intmain(){inta=1;intb=2;intc=0;printf("交换前a=%db=%d\n",a,b);c=a;a=b;b=c;printf("交换后a=%db=%d\n",a,b);return0;}
分类:其他好文   时间:2020-11-23 12:28:40    阅读次数:4
【底层原理】C/C++内存对齐详解
什么是内存对齐还是用一个例子带出这个问题,看下面的小程序,理论上,32位系统下,int占4byte,char占一个byte,那么将它们放到一个结构体中应该占4+1=5byte;但是实际上,通过运行程序得到的结果是8byte,这就是内存对齐所导致的。//32位系统#include<stdio.h>struct{intx;chary;}s;intmain(){printf("%d\n",s
分类:编程语言   时间:2020-11-23 12:26:53    阅读次数:7
实验3
实验任务4#include<stdio.h> #include<math.h> int main() { int n,a,b,i,s; printf("Enter a number:"); scanf("%d",&n); while(n){ i=0; s=0; while(n!=0){ a=n%10 ...
分类:其他好文   时间:2020-11-23 12:22:09    阅读次数:3
实验三
#include <math.h> #include <stdio.h> int main() { float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c"); while(scanf("%f%f%f",&a,&b,&c) !=EO ...
分类:其他好文   时间:2020-11-23 11:57:34    阅读次数:4
实验三
任务一 #include<stdio.h> #include<math.h> int main(){ float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a ...
分类:其他好文   时间:2020-11-21 12:42:08    阅读次数:28
scanf和printf的格式
scanf()函数是通用终端格式bai化输入函数,du它从标准输入设备(键盘)读取输zhi入的信息。可以读入任dao何固有类型的数据并自动把数值变换成适当的机内格式。其调用格式为:scanf(“<格式化字符串>”,<地址表>);scanf()函数返回成功赋值的数据项数,出错时则返回EOF; 其控制串 ...
分类:其他好文   时间:2020-11-21 12:39:38    阅读次数:12
实验333333333333333333
#include<math.h> #include<stdio.h> int main(){ float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, &b ...
分类:其他好文   时间:2020-11-21 12:32:15    阅读次数:7
实验3
#include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, ...
分类:其他好文   时间:2020-11-21 12:31:36    阅读次数:8
Python3 字符串(5)
Python字符串格式化 Python 支持格式化字符串的输出 。尽管这样可能会智慧工地用到非常复杂的表达式,但最基本的用法是将一个值插入到一个有字符串格式符 %s 的字符串中。 在 Python 中,字符串格式化使用与 C 中 sprintf 函数一样的语法。 以上实例输出结果: python字符 ...
分类:编程语言   时间:2020-11-21 12:06:02    阅读次数:5
16150条   上一页 1 ... 26 27 28 29 30 ... 1615 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!