最新 最热

Android ANR问题解析(一)

ANR,是“Application Not Responding”的缩写,即“应用程序无响应”。直观地说就是:“又卡了?” 与Java Crash或者Native Crash不同,ANR并不会导致程序崩溃,如果用户愿意等待,大多数ANR在一段时间后都是可以恢复的。但对于用...

2020-07-15
1

Transformer的PyTorch实现

文本主要介绍一下如何使用 PyTorch 复现 Transformer,实现简单的机器翻译任务。

2020-07-15
1

PAT 1028 List Sorting (25分) 用char[],不要用string

Excel can sort records according to any column. Now you are supposed to imitate this function.

2020-07-14
1

PAT 1049 Counting Ones (30分) 编程之美--1的个数

The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. For example...

2020-07-14
1

PAT 1041 Be Unique (20分)利用数组找出只出现一次的数字

Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen f...

2020-07-14
1

PAT1045 Favorite Color Stripe (30分) 动态规划

Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off those unwant...

2020-07-14
1

PAT1047 Student List for Course (25分)避免运行超时(内存溢出)

Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student...

2020-07-14
1

PAT 1035 Password (20分) 字符替换

To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it i...

2020-07-14
1

PAT 1036 Boys vs Girls (25分) 比大小而已

This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.

2020-07-14
1

PAT 1010 Radix (25分) radix取值无限制,二分法提高效率

题目Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The

2020-07-14
2