首页 > TAG信息列表 > useless

F. Vitaly and Advanced Useless Algorithms(贪心+dp)

F. Vitaly and Advanced Useless Algorithms Tag dp 贪心 rating2200 题目链接 https://codeforces.ml/contest/1650/problem/F 题目大意 有n个任务需要完成,每个任务都有对应的ddl,记为数组a,每个任务的完成度必须到达100%才算完工 现在有m个选择,每个选择会对应3个属性 \(e\)

每日两题—buuctf

[ZJCTF 2019]NiZhuanSiWei php代码审计 <?php $text = $_GET["text"]; $file = $_GET["file"]; $password = $_GET["password"]; if(isset($text)&&( ($text,'r')==="welcome to the zjctf")){ echo "&

buuctf(web):[ZJCTF 2019]NiZhuanSiWei 1

打开链接,发现又是代码审计 <?php $text = $_GET["text"]; $file = $_GET["file"]; $password = $_GET["password"]; if(isset($text)&&(file_get_contents($text,'r')==="welcome to the zjctf")){ echo "<

[ZJCTF 2019]NiZhuanSiWei 1

一 前置知识点 file_get_contents函数 — 将整个文件读入一个字符串 ctf中伪协议总结   二 解题 <?php $text = $_GET["text"]; $file = $_GET["file"]; $password = $_GET["password"]; if(isset($text)&&(file_get_contents($text,'r')==="we

bison rule useless in grammar

Bison warning: noterminal useless in grammar [-Wother] 起因 看了bison的文档example的那一部分所以想要凭记忆写一个简单的计算器,于是有了如下代码 %{ #include <stdio.h> #include <ctype.h> #include <math.h> #include <stdlib.h> int yylex (void); void yyerror (

拒绝想当然,不看文档导致GNE 的隐秘 bug

拒绝想当然,不看文档导致GNE 的隐秘 bug 摄影:产品经理在杭州竟然还能吃到豌豆尖,kingname 激动得喝了一碗汤GNE[1]上线 4 天,已经有很多朋友通过它来编写自己的新闻类网页通用爬虫。 今天有一个用户来跟我反馈,GNE 0.1.4 版本在提取澎湃新闻时,只能提取一小部分的内容。 一开始我以为是

NiZhuanSiWei-[ZJCTF 2019]-[PHP伪协议]-[传送门->BUUCTF]

0x01、Web 1.NiZhuanSiWei-[ZJCTF 2019]-[PHP伪协议]-[传送门->BUUCTF] 第一步:打开环境,点击题目链接,进行代码审计 <?php $text = $_GET["text"]; //GET传参:text $file = $_GET["file"]; //GET传参:file $password = $_GET["password"]; //GET传参:password if(i

[ZJCTF 2019]NiZhuanSiWei

<?php $text = $_GET["text"]; $file = $_GET["file"]; $password = $_GET["password"]; if(isset($text)&&(file_get_contents($text,'r')==="welcome to the zjctf")){ echo "<br><h1>

no-useless-computed-key (Rules) – Eslint 中文开发手册

[   Eslint 中文开发手册 no-useless-computed-key (Rules) - Eslint 中文开发手册 在--fix命令行上的选项可以自动修复一些被这条规则反映的问题。 没有必要使用带文字的计算属性,例如: var foo = {["a"]: "b"}; 该代码可以被重写为: var foo = {"a": "b"}; 规则细节 此规则禁

Season01_01

Hey, what are you doing? 你干什么 Jesus! 天哪 Did you get a good look? 你看清肇事的车了吗 Blue Toyota Camry, it's all I saw.只看到是辆蓝色丰田佳美 It's the Wharton's dog. 是沃顿家的狗 一种让你变得更强...The sort of pain that makes you strong... 另一

清理日志

#!/bin/sh LOG_NAME="messages" echo ' ' > $LOG_NAME function loop_clean_log(){ #LOG_NAME="PaasMainApp_*.log" BASE_DIR=`dirname $0` && cd $BASE_DIR USELESS_LOG_FILE=`find . -name "${LOG_NAME}-*" -