上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 108 下一页

2021年3月21日

摘要: 地址 https://www.acwing.com/problem/content/description/92/ 求 a 乘 b 对 p 取模的值。 输入格式 第一行输入整数a,第二行输入整数b,第三行输入整数p。 输出格式 输出一个整数,表示a*b mod p的值。 数据范围 1≤a,b,p≤1 阅读全文
posted @ 2021-03-21 17:54 itdef 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 地址 https://www.acwing.com/problem/content/description/91/ 求 a 的 b 次方对 p 取模的值。 输入格式 三个整数 a,b,p ,在同一行用空格隔开。 输出格式 输出一个整数,表示a^b mod p的值。 数据范围 0≤a,b≤10^9 1 阅读全文
posted @ 2021-03-21 17:17 itdef 阅读(135) 评论(0) 推荐(1) 编辑

2021年3月20日

摘要: 地址 https://vjudge.net/problem/Aizu-0525 IOI 糖果公司使用自公司成立以来一直沿用的传统方法烘烤米果。 这种传统方法是将米果的正面用炭火烘烤一段时间,正面烤好后将其翻面,再将背面用炭火烘烤一段时间。 在保持这一传统的同时,米果是用机器烘烤的。 机器烘烤的米果呈 阅读全文
posted @ 2021-03-20 17:54 itdef 阅读(60) 评论(0) 推荐(0) 编辑

2021年3月17日

摘要: Description Given a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and writing them in som 阅读全文
posted @ 2021-03-17 12:56 itdef 阅读(93) 评论(0) 推荐(0) 编辑

2021年3月16日

摘要: 地址 https://leetcode-cn.com/problems/search-in-rotated-sorted-array/ 整数数组 nums 按升序排列,数组中的值 互不相同 。 在传递给函数之前,nums 在预先未知的某个下标 k(0 <= k < nums.length)上进行了 阅读全文
posted @ 2021-03-16 13:37 itdef 阅读(136) 评论(0) 推荐(0) 编辑

2021年3月12日

摘要: 地址 https://leetcode-cn.com/problems/substring-with-concatenation-of-all-words/ 给定一个字符串 s 和一些长度相同的单词 words。找出 s 中恰好可以由 words 中所有单词串联形成的子串的起始位置。 注意子串要与  阅读全文
posted @ 2021-03-12 17:51 itdef 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/generate-parentheses/ 数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且 有效的 括号组合。 示例 1: 输入:n = 3 输出:["((()))","(()())","(())() 阅读全文
posted @ 2021-03-12 10:10 itdef 阅读(164) 评论(0) 推荐(0) 编辑

2021年3月11日

摘要: 地址 https://leetcode-cn.com/problems/3sum-closest/ 给定一个包括 n 个整数的数组 nums 和 一个目标值 target。找出 nums 中的三个整数,使得它们的和与 target 最接近。返回这三个数的和。假定每组输入只存在唯一答案。 示例: 输入 阅读全文
posted @ 2021-03-11 15:11 itdef 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/3sum/ 给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有和为 0 且不重复的三元组。 注意:答案中不可以包含重复的三元组。 示例 1 阅读全文
posted @ 2021-03-11 12:04 itdef 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/roman-to-integer/ 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M 1000 例如, 罗马数字 2 写做 II ,即 阅读全文
posted @ 2021-03-11 09:48 itdef 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 108 下一页

导航