ICode9

精准搜索请尝试: 精确搜索
  • 菜鸟HTML学习笔记2022-06-15 20:36:52

    HTML(Hyper Text Markup Language,超文本标记语言)。经历了浏览器战争,HTML规范有了很大的改进。早期的HTML版本不太关心将元素内容的意义和呈现的方式分开,HTML5引用了将元素的意义和呈现方式分开的规则。HTML5是HTML规范最新的版本,HTML5核心规范明确了元素的具体语义,CSS可用于控制

  • 前端——html——html列表2022-06-12 16:02:52

    HTML 支持有序、无序和定义列表:     HTML无序列表 无序列表是一个项目的列表,此列项目使用粗体圆点(典型的小黑圆圈)进行标记。 无序列表使用 <ul> 标签 <ul><li>Coffee</li><li>Milk</li></ul> 浏览器显示如下: Coffee Milk HTML 有序列表 同样,有序列表也是一列项目,列表项目

  • 不同类型的有序列表2022-03-18 20:33:47

    <h4>编号列表:</h4><ol> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li></ol> <h4>大写字母列表:</h4><ol type="A"> <li>Apples</li> <l

  • 不同类型的无序列表2022-03-18 20:33:04

    <h4>圆点列表:</h4><ul style="list-style-type:disc"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li></ul> <h4>圆圈列表:</h4><ul style="list-st

  • [ABC195B]Many oranges2021-05-02 15:02:29

    目录壹、题目描述 ¶贰、题解 ¶叁、参考代码 ¶肆、游戏体验 ¶ 壹、题目描述 ¶ 传送门 to Atcoder 橘子太多了,它红得就像 \(\color{red}{\text{WA}}\). 贰、题解 ¶ 单位还不一样,得把 \(W\) 换算成 \(\rm g\) 作单位,所以真正的 \(w=1000W\). 你或许可以直接暴力做背包,但是由于

  • [LeetCode] 994. Rotting Oranges 腐烂的橘子2021-01-10 04:32:04

    You are given an m x n grid where each cell can have one of three values: 0 representing an empty cell, 1 representing a fresh orange, or 2 representing a rotten orange. Every minute, any fresh orange that is 4-directionally adjacent to a rotten or

  • 994. Rotting Oranges2020-10-31 02:03:43

    package LeetCode_994 import java.util.* /** * 994. Rotting Oranges * https://leetcode.com/problems/rotting-oranges/ * * In a given grid, each cell can have one of three values: the value 0 representing an empty cell; the value 1 representing a fresh

  • cf23C Oranges and Apples(很好的贪心题)2020-10-10 20:02:04

    地址:https://vjudge.net/problem/CodeForces-23C/origin 题意: n 给出2*n-1个箱子,分别含有a个苹果,o个橘子 能否找出n个箱子,保证其可装的苹果不少于总苹果数一半,橘子不少于总橘子数一半。 解析: 经过分析,答案是一定存在的。 先按苹果数从小到大排序。 令第2*n-1个必拿。 假设2*n-1==7

  • LeetCode 1553. Minimum Number of Days to Eat N Oranges2020-09-16 17:00:27

    题目 题意:一堆橘子,要么吃一个,如果橘子数量能被2整除就可以吃一半,如果橘子数量能被3整除就可以吃三分之二,请问最少几次能吃完? 题解:橘子的个数是n,按照贪心的思想,肯定是吃一半或者吃三分之二划算。因此每一步,都有两种选择,要么一个一给吃,吃到能被2整除,然后吃掉一半。要么一个一个吃,吃

  • [LeetCode] 1553. Minimum Number of Days to Eat N Oranges2020-08-18 02:00:53

    There are n oranges in the kitchen and you decided to eat some of these oranges every day as follows: Eat one orange. If the number of remaining oranges (n) is divisible by 2 then you can eat  n/2 oranges. If the number of remaining oranges (n) is divisi

  • 994. Rotting Oranges2020-08-09 23:01:03

    In a given grid, each cell can have one of three values: the value 0 representing an empty cell; the value 1 representing a fresh orange; the value 2 representing a rotten orange. Every minute, any fresh orange that is adjacent (4-directionally) to a

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有