[Codeforces 797 C. Minimal string] queue + stack
CF 797C
• given the lowercase letter string s with length n, and the empty string t, u, two operations
Add the first character of s to the end of t
Add the last character of t to the end of u
• find the string u with the smallest dictionary order (the length must be n, i.e. s, t and the last e ...
Posted by sapoxgn on Tue, 29 Oct 2019 07:28:44 -0700
[Codeforces 1183 F. Topforces Strikes Back] number theory
CF1183 F
I'm going to give you n numbers. I'm going to ask you to select at most 3 numbers. The numbers that don't divide each other make the sum the maximum.
The method is to enumerate a selected number x from large to small
And then he never divides all his numbers by the largest y
And then never divi ...
Posted by diex on Fri, 25 Oct 2019 11:52:56 -0700
Educational codes round 68 (rated for Div. 2) d. 1-2-k game
D. 1-2-K Game
time limit per test2 seconds
memory limit per test256 megabytes
inputstandard input
outputstandard output
Alice and Bob play a game. There is a paper strip which is divided into n + 1 cells numbered from left to right starting from 0. There is a chip placed in the n-th cell (the last one).
Players take turns, Alice is first. Each ...
Posted by dekeb55 on Fri, 25 Oct 2019 10:47:36 -0700
Solution for online preview of files in uni app
Just passed, I also wish you all good health, everything goes well and no more bugs in your future life.
I. Preface
I wrote an article about uploading directory file: Solution of directory file upload (not only pictures and videos) in uni app system , this time to solve the file preview problem.
uni-app It is a framework that uses Vue.js to d ...
Posted by ShawnK on Thu, 24 Oct 2019 19:17:06 -0700
Advanced sharing in iOS development - new framework in iOS 13 - MetriKit
MetriKit is a new framework for collecting and processing batteries and performance metrics in iOS 13. This is WWDC working with XCTestMetrics and Xcode Metrics organizers this year as part of a concerted effort to bring new insights to developers about the performance of their applications in this area.
Apple will automatically collect Metr ...
Posted by wilsonodk on Wed, 23 Oct 2019 23:44:18 -0700
Save pictures for quick app
There is a hole in the saved image in the quick application. If you step on it, you will be hit. Here, you should also distinguish Huawei from other manufacturers. Although there is no problem with the debugger provided by Huawei and the official suppliers, Huawei mobile phones cannot be saved after the application goes online.
1. different poi ...
Posted by ignorant on Wed, 23 Oct 2019 11:10:52 -0700
Minimum tree - hdu4966
https://vjudge.net/contest/311526#problem/G
General idea: given n(50) attributes, each attribute has a[i](500) level, a n d there are M(2000) courses. To participate in j course, c attribute should reach D.
In this way, you can upgrade your e attribute to f, and spend g yuan at the same time. Ask h ...
Posted by pradee on Tue, 22 Oct 2019 13:26:18 -0700
okhttpClinet set trust certificate
1. There are two types of certificates
@1. The certificate purchased from the certification authority (each certificate purchased by our company requires 4000 yuan, TMD, rather than renting an additional server). If the server uses such a certificate, it can directly ignore the certificate for the m ...
Posted by joey3002 on Sat, 19 Oct 2019 08:35:18 -0700
Finish reading Runloop
Runloop is a basic component closely related to threads, and it is behind many functions related to threads. This article will summarize runloop from the following aspects:
What is runloop
The role of runloop
The relationship between runloop and thread
Detailed introduction of runloop and source code analysis
Analysis of runloop principle
runl ...
Posted by korngold on Fri, 18 Oct 2019 15:20:08 -0700
Algorithm - count the number of all subviews on a view
Since then, I have no intention to love good nightLet him go down to the West Tower in the bright moon
Preface
Count the number of subviews on a view. Subviews containing subviews
Realization way
recursion
DFS depth first traversal
queue
BFS breadth first traversal
code implementation
recursion
Thoughts:
Return 0 when the view is empty
Retur ...
Posted by phpusers on Thu, 17 Oct 2019 10:00:29 -0700