白皮 Chapter 1
6.29 今天主要做了一些1.5中的小结和练习,果然换语言思路也要跟着变么…各种不爽啊不爽…
scanf各种忘记&,还有各种忘记return 0…
7.1 继续做习题…
#include<stdio.h> #include<math.h>int main() {int n;scanf("%d",&n);if (n % 2==1) printf("no"); else printf("yes");return 0; }
odd
#include<stdio.h> #include<math.h>int main() {int s,n;double m;scanf("%d",&n);s=95*n;if (s>=300) m=((float) s)*0.85; else m=(float) s;printf("%.2lf",m);return 0; }
discount
#include<stdio.h> #include<math.h>int main() {double a;scanf("%lf",&a);if (a<0) a=-a;printf("%.2lf",a);return 0; }
abs
#include<stdio.h> #include<math.h>int main() {int a,b,c,t;scanf("%d%d%d",&a,&b,&c);//sortif (a>b) {t=a;a=b;b=t;}if (a>c) {t=a;a=c;c=b;}if (b>c) {t=b;b=c;c=t;}//determineif (c<a+b) {if (c*c==a*a+b*b) printf("yes"); else printf("no");}else printf("not a triangle");return 0; }
triangle
#include<stdio.h> #include<math.h>int main() {int y;scanf("%d",&y);if (y%4==0){if (y%400==0) printf("yes");else {if (y%100==0) printf("no"); else printf("yes");}}else printf("no");return 0; }
year
转载于:https://www.cnblogs.com/Sky-Grey/p/4609259.html
白皮 Chapter 1相关推荐
- python使用fpdf生成pdf文件章节(chapter),包含:页眉、页脚、章节主题、数据排版等;
python使用fpdf生成pdf文件章节(chapter),包含:页眉.页脚.章节主题.数据排版等: #仿真数据 The year 1866 was marked by a bizarre deve ...
- python使用fpdf生成pdf章节(chapter)文件包含:页眉、页脚、章节主体、章节内容等;
python使用fpdf生成pdf章节(chapter)文件包含:页眉.页脚.章节主体.章节内容等: 目录
- Chapter 1 快速搭建-服务的注册与发现(Eureka)
Chapter 1 快速搭建-服务的注册与发现(Eureka) 一.Spring Cloud简介 为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智能路由,微代 ...
- 吴恩达Coursera机器学习 - Chapter 4 多变量线性回归
Chapter 4 – 多变量线性回归(Linear Regression with Multiple Variables) 相比第二章,这一章无非就是数据集的特征数由一个变为多个,并引入了矩阵的概念 ...
- Chapter 1 Securing Your Server and Network(9):使用Kerberos用于身份验证
原文: Chapter 1 Securing Your Server and Network(9):使用Kerberos用于身份验证 原文出处:http://blog.csdn.net/dba_hua ...
- Chapter 11 替代变量
Chapter 11 替代变量 select empno, ename, sal from emp where sal >= 1500 select empno, ename, sal from ...
- Chapter 6 : 综合数据和分组函数
Chapter 6 : 综合数据和分组函数 COUNT AVE SUM MAX MIN 分组函数必须要在group by 的情况下才可以使用奥 select count(*) from emp e; ...
- Data Structures with C++ Using STL Chapter 3算法概述---笔记
<Data Structures with C++ Using STL Chapter 3算法概述---笔记>,作者:茉莉花茶,原文链接:http://www.cnblogs.com/yc ...
- 菜鸟崛起 DB Chapter 2 MySQL 5.6的概述与安装
在上文菜鸟崛起 DB Chapter 1 数据库概述我们初步认识了数据库,也知道市面上常见的几种数据库,下面我们就针对常见的MySQL数据库展开对DataBase的探讨. 2.1 MySQL介绍 M ...
- JavaScript- The Good Parts CHAPTER 2
I know it well: I read it in the grammar long ago. -William Shakespeare, The Tragedy(悲剧:灾难:惨案) of Ti ...
最新文章
- 43.放苹果(递归练习)
- springboot源码分析 - AbstractRoutingDataSource多数据源方案的分析
- GitHub上传本地代码到仓库[Windows]
- 洛谷 P1983 车站分级
- 如何使用Chrome开发者工具调试web socket应用
- 排序算法02--冒泡排序
- Linux安装配置类似mac下的docky
- Java ListResourceBundle getKeys()方法与示例
- 刷题总结——飞飞侠(bzoj2143 最短路)
- Windows将WSL 1升级为WSL2
- LINUX 邮件服务器qmail 架设
- 二进制128位整数运算
- 树莓派2 利用网卡进行无线网破解
- IOS日历控件JTCalendar
- bzoj4173:数学
- 获取局域网电脑的硬件配置
- luogu P1724 东风谷早苗
- Jmeter Ant Jenkins报告优化——jmeter.results.shanhe.me模板的response和request值为空的解决方案
- 块元素盒子内容被撑开
- 标准H.460公私网穿越视频解决方案
热门文章
- 学会这两个技巧!让你的Mac文件共享超简单
- 如何使用TunesKit AceMovi Video Editor Mac在视频中添加贴纸
- gitlab 安装、配置、清空、卸载、重装
- 利用MindManager,制作简易的漏斗图
- Fl Studio真的不如Cubase或者Logic Pro等电音软件专业吗?
- Git下修改提交的author和email信息
- 《移动App测试的22条军规》—App测试综合案例分析23.5节测试微信App的用户体验...
- composer 无法更新vonder
- 认识 sun.misc.Unsafe
- C#中类的默认构造函数对类中属性值的初始化情况