打赏

相关文章

Aizu 1369 Distribution Center 模拟|签到

题目链接&#xff1a;AIZU1369 当时想了一种特别奇怪的方法&#xff0c;正准备写&#xff0c;队友就把这道题A了。 代码里面有注释。 AC代码&#xff1a; /* Aizu 1369 2017年8月11日23:00:33 AC 代码参考 BinacsLee */ #include<stdio.h> #include<algorithm&g…

1369 - 【提高】Pell数列

先写出加法在写乘法 代码有点长&#xff0c;请耐心看完 #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[…

zoj 1369

裸的半平面交。 这个题没说输入是顺时针还是逆时针&#xff0c;可以用面积判断&#xff0c;多边形面积如果是顺时针&#xff0c;面积为负&#xff0c;改变下方向即可。 粘两个模板。 code 1&#xff1a; //书27页 #include<cstdio>#include<cstring>#include<…

CF1369E. DeadLee 思维

Link 思维&#xff0c;贪心&#xff0c;拓扑排序 2400 题意 有 n n n种菜&#xff0c;每种菜都有 w i w_i wi​碟&#xff0c;你有 m m m个朋友&#xff0c;每个朋友都有两种喜欢的菜&#xff0c;你按照某个排序让朋友一个一个来吃菜&#xff0c;如果现在桌上有这个朋友喜欢的…

1369 B. AccurateLee

题目&#xff1a; 给一个01组成的字符串&#xff0c;如果字符串中有“10”结构&#xff0c;那么就可以删除这个1和0中的一个数&#xff0c;使剩下的字符串最短。 题解&#xff1a; 删除从第一个1开始到最后一个0前面一个数之间的所有数。 代码&#xff1a; #include<bi…

1369. 最频繁单词

1369. 最频繁单词 给定一个段落和一组限定词&#xff0c;返回最频繁的非限定单词。已知至少有一个单词是非限定的&#xff0c;并且答案唯一。 限定词都是以小写字母给出&#xff0c;段落中的单词大小写不敏感。结果请返回小写字母。 样例 样例1 输入: paragraph "Bob hit…

Light OJ 1369

题目链接&#xff1a; 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…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部