从今天起每天刷1 2题PAT甲级 A1001 A+B Format (20 分) 题目内容 Calculate a+b and output the sum in standard format that is, the digits must be separated into groups of ...
分类:
其他好文 时间:
2019-09-13 20:05:07
阅读次数:
86
1001 A+B Format(20分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unle ...
分类:
编程语言 时间:
2019-09-10 20:54:28
阅读次数:
180
题意: 给出区间与、或、异或$x$操作,还有询问区间和。 思路: 因为数比较小,我们给每一位建线段树,这样每次只要更新对应位的答案。 与$0$和或$1$相当于重置区间,异或$1$相当于翻转区间,那么设出两个$lazy$搞一下。注意父区间$pushdown$重置标记时,子区间的翻转标记要清空。 代码: ...
分类:
其他好文 时间:
2019-09-08 23:56:46
阅读次数:
181
Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are fri ...
分类:
其他好文 时间:
2019-09-05 21:46:42
阅读次数:
95
一、这里用到了:String模块ascii_letters和digits ...
分类:
编程语言 时间:
2019-09-03 14:49:49
阅读次数:
144
Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given ...
分类:
其他好文 时间:
2019-09-03 11:55:40
阅读次数:
75
Isomorphic Inversion 题目描述 Let s be a given string of up to 106 digits. Find the maximal k for which it is possible to partition s into k consecutive c ...
分类:
其他好文 时间:
2019-09-03 11:42:44
阅读次数:
93
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2019-09-02 23:45:38
阅读次数:
97
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2019-09-02 23:26:46
阅读次数:
107
MONTHS_BETWEEN的使用 MONTHS_BETWEEN函数返回两个日期之间的月份数。 若天数不够一月或多于一月,则以31为分母计算 oracle之TRUNC函数 TRUNC(number,num_digits) Number 需要截尾取整的数字。 Num_digits 用于指定取整精度的数 ...
分类:
数据库 时间:
2019-09-02 17:11:10
阅读次数:
139