• 2024-05-07Laravel Schedule 中的 dailyAt 是如何工作的
    LaravelSchedule中的dailyAt是如何工作的业务逻辑中通过dailyAt​指定了一个每天都需要执行的定时任务:$schedule->call(function(){//业务逻辑})->dailyAt('14:29');‍​Illuminate\Console\Scheduling\ManagesFrequencies​中的dailyAt​方法,最终是生成
  • 2024-02-23A smart way to invert a number
    /*Thisismyhomeworktodaytojudgeanumberwhetherit'sapalindrome//Mostofususearraytosolvetheproblem,butIfindawaydonotneedanarray.*/include<stdio.h>intmain(intargc,constchar*argv[]){intx,m,n=0;printf(&quo
  • 2023-12-05NCTF2022-Crypto WP
    superecc题目fromCrypto.Util.numberimport*fromsecretsimportINF,flagassertflag[:5]==b'nctf{'classsuper_ecc:def__init__(self):self.a=73101304688827564515346974949973801514688319206271902046500036921488731301311
  • 2023-11-15一行代码“黑”掉任意网站
    大家好,我是JavaPub。只需一行代码,轻轻一点就可以把任意网站变成暗黑模式。image首先我们先做一个实验,在任意网站中,打开浏览器开发者工具(F12),在C1onsole控制台输入如下代码并回车:document.documentElement.style.filter='invert(85%)hue-rotate(180deg)'image神奇的事情发生了,
  • 2023-08-29CF1839C Insert Zero and Invert Prefix 题解
    首先考虑无解的情况,很明显\(a_n\)必须为\(0\),否则没有解,因为如果最后一位为\(1\)那么必须有\(n\)这个数存在于\(b\)序列中,而这种情况时不符合题意的。然后考虑如何求解,先考虑一种比较特殊的情况,就是若干个\(1\)后面接着一个\(0\),这里假设\(1\)的数量有\(k\)个,这
  • 2023-05-201102 Invert a Binary Tree
    题目:ThefollowingisfromMaxHowell@twitter:Google:90%ofourengineersusethesoftwareyouwrote(Homebrew),butyoucan'tinvertabinarytreeonawhiteboardsofuckoff. Nowit'syourturntoprovethatYOUCANinvertabinarytree!I
  • 2023-05-09Unity Shader Toggle KeywordEnum Enum 使用
    Shader"Unlit/Custom/Shader05"{Properties{_MainTex("MainTex",2D)="white"{}[Toggle]_INVERT("Invertcolor?",Float)=0//_INVERT必须是大写的_Invert不可以[KeywordEnum(None,Add,M
  • 2023-02-16几行代码给网站添加暗黑模式
    很多网站都需要添加暗黑模式,怎么添加呢,有一种简单的方式只需在css代码中添加这么一句html[theme="dark-mode"]{filter:invert(1)hue-rotate(180deg);}filter:
  • 2023-01-18bugku_EasyMath
    bugku_EasyMath题目描述简单的数学题fromCrypto.Util.numberimportgetPrime,bytes_to_longfromsecretimportflagp=getPrime(2048)q=getPrime(2048)x=
  • 2022-11-27226. Invert Binary Tree
      publicTreeNodeinvertTree(TreeNoderoot){       if(root==null)returnnull;       TreeNodetmp=root.left;       root.left
  • 2022-11-22Codeforces997A-Convert to Ones
    期末考炸完后重新开始做OI,先在Codeforces里面做一段时间锻炼一下思维,最近几篇都会写CF的文章,尽量把思维写得详细一点。题解:这题里面x,y的大小是很重要的。我们发现如果
  • 2022-11-191102 Invert a Binary Tree
    ThefollowingisfromMaxHowell@twitter:Google:90%ofourengineersusethesoftwareyouwrote(Homebrew),butyoucan'tinvertabinarytreeonawhiteboa
  • 2022-10-26贼难受,不知道要干啥的题,0难度
    832. FlippinganImageEasy45894FavoriteShareGivenabinarymatrix ​​A​​,wewanttofliptheimagehorizontally,theninvertit,andreturntheresulting
  • 2022-09-29leetcode 226. Invert Binary Tree 翻转二叉树(简单)
    一、题目大意给你一棵二叉树的根节点root,翻转这棵二叉树,并返回其根节点。示例1:输入:root=[4,2,7,1,3,6,9]输出:[4,7,2,9,6,3,1]示例2:输入:root=[2,1,3]输