相关文章
Aizu 1369 Distribution Center 模拟|签到
题目链接:AIZU1369
当时想了一种特别奇怪的方法,正准备写,队友就把这道题A了。
代码里面有注释。
AC代码: /*
Aizu 1369
2017年8月11日23:00:33
AC
代码参考 BinacsLee
*/ #include<stdio.h>
#include<algorithm&g…
建站知识
2025/3/16 14:02:33
获取城市a-z jso列表
citys:{ "hot":[{ "id": 1, "spell": "ab", "name": "北京" }, { "id": 2, "spell": "ab", "name": "上…
建站知识
2025/2/23 13:55:12
1369 - 【提高】Pell数列
先写出加法在写乘法
代码有点长,请耐心看完
#include <bits/stdc.h>
using namespace std;string he(string e, string f)
{string r "";int a[1000] {0};int b[1000] {0};int c[1000] {0};int len 0;for (int i 0; i < e.size(); i){a[…
建站知识
2025/3/16 14:03:03
CF1369E. DeadLee 思维
Link 思维,贪心,拓扑排序 2400
题意
有 n n n种菜,每种菜都有 w i w_i wi碟,你有 m m m个朋友,每个朋友都有两种喜欢的菜,你按照某个排序让朋友一个一个来吃菜,如果现在桌上有这个朋友喜欢的…
建站知识
2025/3/16 14:14:28
1369 B. AccurateLee
题目:
给一个01组成的字符串,如果字符串中有“10”结构,那么就可以删除这个1和0中的一个数,使剩下的字符串最短。
题解:
删除从第一个1开始到最后一个0前面一个数之间的所有数。
代码:
#include<bi…
建站知识
2025/3/1 3:06:55
1369. 最频繁单词
1369. 最频繁单词 给定一个段落和一组限定词,返回最频繁的非限定单词。已知至少有一个单词是非限定的,并且答案唯一。 限定词都是以小写字母给出,段落中的单词大小写不敏感。结果请返回小写字母。 样例 样例1 输入: paragraph "Bob hit…
建站知识
2025/2/8 14:48:47
Light OJ 1369
题目链接:
http://lightoj.com/volume_showproblem.php?problem1369 The problem you need to solve here is pretty simple. You are give a function f(A, n), where A is an array of integers and n is the number of elements in the array. f(A, n) is defi…
建站知识
2025/2/20 12:07:25