- 博客(8)
- 收藏
- 关注
原创 c 字符串转换int
#include #include #include #include using namespace std;int main(){ int c; char s[4]; scanf("%s",s); c=atoi(s); printf("%d",c); return 0;}
2017-08-04 13:44:46 2236
原创 PTA甲 1105. Spiral Matrix (25)
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrixis filled in from the first element at the upper-left corner, then move in
2017-07-25 18:29:17 215
原创 PTA甲 1104. Sum of Number Segments (20)
1104. Sum of Number Segments (20)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CAO, PengGiven a sequence of positive number
2017-07-25 17:09:26 283
原创 PTA甲 1103. Integer Factorization (30)
The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the K-P factorization of N for any positive
2017-07-25 13:40:29 192
原创 PTA甲 1003. Emergency (25)
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l
2017-07-24 23:10:29 383
原创 PAT甲 1102. Invert a Binary Tree (25)
The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off.Now it's your turn
2017-07-24 22:10:01 235
原创 PTA甲 1101. Quick Sort (25)
题目描述There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then the elements less than the pivot are moved
2017-07-24 11:45:53 285
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人