PATA-Exercise No.1
来源:互联网 发布:幕府将军2全面战争mac 编辑:程序博客网 时间:2024/05/21 01:57
PAT甲级练习01
题目:PAT1001
20170623于华东交通大学
#include <iostream>using namespace std;int main() { int a, b; cin >> a >> b; string s = to_string(a + b); int len = s.length(); for (int i = 0; i < len; i++) { cout << s[i]; if (s[i] == '-') continue; if ((i + 1) % 3 == len % 3 && i != len - 1) cout << ","; } return 0;}
阅读全文
0 0
- PATA-Exercise No.1
- PATA-Exercise No.2
- pata 1008
- 38-1-1-Exercise
- Exercise of Thread(1)
- notepad exercise 1
- ? P20 Exercise 1-10
- Python Exercise #1
- Assignment 1: Coding Exercise
- Jos-lab2 (Exercise 1)
- [Exercise 1] Linear Regression
- Exercise 1_3_34
- 37-1-2-exercise
- Exercise
- exercise
- Exercise
- exercise
- C程序设计语言 Exercise 3-1
- MyEclipse中服务器启动问题
- 开始时间
- Mycat安装以及使用测试
- Ubuntu16.04安装gpu版tensorflow1.2+cuda+cudnn
- 【0040】SQL函数之聚合函数(Aggregate)
- PATA-Exercise No.1
- git,github使用
- Opencv学习之查找并绘制轮廓
- Hadoop操作拾遗
- FormatMessage,setWindowText,CreateWindow等函数讲解
- (总结)CentOS Linux搭建SVN Server配置详解
- XShell5设置左键选中复制,右键粘贴
- CSS中的文本属性--text
- jsp预编译内存溢出错误