刷题——5.5
来源:互联网 发布:java从入门到精通 编辑:程序博客网 时间:2024/05/18 00:22
#includeusing namespace std;int main() {int x, y;cin >> x;if (x < 1) {y = x;cout << y;}else if(x >= 1 &&x < 10) {y = 2 * x - 1;cout << y;}else if(x >= 10){y = 3 * x - 11;cout << y;};return 0;}
阅读全文
0 0
- 刷题——5.5
- 刷题——SortList
- 刷题——ReorderList
- 刷题——WordLadder
- 刷题——蛙跳
- leetcode刷题——
- 刷题——5.7
- 刷题——5.8
- 刷题—Palindrome Number
- C++刷题——乱七八糟
- 刷题——质数因子
- 刷题——surrounded-regions
- 刷题——分糖果
- 刷题——Ants POJ
- 刷题——Expedition POJ
- 刷题——Roadblocks POJ
- 刷题——Conscription POJ
- 刷题——Layout POJ
- 【JZOJ5433】图
- eclipse git报错git The current branch is not configured for pull No value for key branch.master.merge
- HDOJ 1215 七夕节
- Linux中的自动安装脚本
- 2017-10-31每日一练
- 刷题——5.5
- LeetCode 121: Best Time to Buy and Sell Stock
- 批处理作业问题——分支限界法
- 重命名UE4项目
- 译文及题解 电话线Telephone Wire(动态规划)
- 关于未来,仅供参考
- 第一次实验
- vue组件通信
- Android基础复习(二)