当前位置:网站首页>A basic lintcode MySQL database problem
A basic lintcode MySQL database problem
2022-07-06 01:47:00 【CSDN Q & A】
https://www.lintcode.com/problem/1927/solution/42138
Or do it according to normal thinking .
But I saw a person's way of solving problems , I don't understand .
His answer is like this =
UPDATE coins SET side = char(ascii(side)^30)
Take the answer :
Haven't you learned programming ?^
Express exclusive or . Here you are ascii clock :
You calculate ,p Of ascii Code is 112,112 Exclusive or 30=110, That is to say n,110 Exclusive or 30=112, That is to say p.
The inverse operation of XOR is itself .
边栏推荐
猜你喜欢
NLP fourth paradigm: overview of prompt [pre train, prompt, predict] [Liu Pengfei]
国家级非遗传承人高清旺《四大美人》皮影数字藏品惊艳亮相!
It's wrong to install PHP zbarcode extension. I don't know if any God can help me solve it. 7.3 for PHP environment
干货!通过软硬件协同设计加速稀疏神经网络
Leetcode3, implémenter strstr ()
Folio.ink 免费、快速、易用的图片分享工具
[flask] official tutorial -part1: project layout, application settings, definition and database access
Leetcode skimming questions_ Verify palindrome string II
Folio. Ink is a free, fast and easy-to-use image sharing tool
【Flask】官方教程(Tutorial)-part1:项目布局、应用程序设置、定义和访问数据库
随机推荐
Unreal browser plug-in
GBase 8c数据库升级报错
500 lines of code to understand the principle of mecached cache client driver
selenium 等待方式
A Cooperative Approach to Particle Swarm Optimization
Leetcode skimming questions_ Sum of squares
1. Introduction to basic functions of power query
3D vision - 4 Getting started with gesture recognition - using mediapipe includes single frame and real time video
Basic operations of databases and tables ----- non empty constraints
C web page open WinForm exe
National intangible cultural heritage inheritor HD Wang's shadow digital collection of "Four Beauties" made an amazing debut!
Blue Bridge Cup embedded_ STM32_ New project file_ Explain in detail
[network attack and defense training exercises]
Code review concerns
c#网页打开winform exe
02.Go语言开发环境配置
NiO related knowledge (II)
A picture to understand! Why did the school teach you coding but still not
Competition question 2022-6-26
安装Redis