码迷,mamicode.com
首页 >  
搜索关键字:Output    ( 11375个结果)
782. Transform to Chessboard
问题: 给定一个由0,1组成的N*N的数组,问是否能进行多次行交换,列交换,使得数组成为一个国际象棋盘(01交叉排列) 可以则返回交换次数,否则返回-1 Examples: Input: board = [[0,1,1,0],[0,1,1,0],[1,0,0,1],[1,0,0,1]] Output ...
分类:其他好文   时间:2020-05-09 17:12:03    阅读次数:55
C语言把一个字符串中的单词逆序(难)
Input: 输入有包括多组数据。每组数据包括一行字符串。 Output: 输出加密后的字符串。 Sample Input: I Love You Sample Output: I evoL uoY 解析:利用数组计数,把非空格的字符记下来,空格代表一个间断,经过空格后计数要重新开始 完整代码: # ...
分类:编程语言   时间:2020-05-09 13:06:38    阅读次数:111
IDA逆向常用宏定义
/* This file contains definitions used by the Hex-Rays decompiler output. It has type definitions and convenience macros to make the output more reada ...
分类:其他好文   时间:2020-05-08 16:13:24    阅读次数:107
网络编程_客户端与服务端简单代码实现
java package com.qiliang.dmeo14_网络编程.Demo02; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java ...
分类:其他好文   时间:2020-05-08 16:03:34    阅读次数:66
[LeetCode] 1249. Minimum Remove to Make Valid Parentheses
移除无效的括号。题意是给一个带有左括号和右括号的字符串,请你移除一些括号,使得剩下的部分成为一个有效的字符串。例子, Example 1: Input: s = "lee(t(c)o)de)" Output: "lee(t(c)o)de" Explanation: "lee(t(co)de)" , ...
分类:其他好文   时间:2020-05-08 13:23:52    阅读次数:65
993. Cousins in Binary Tree
In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. Two nodes of a binary tree are cousins if they have ...
分类:其他好文   时间:2020-05-08 12:40:20    阅读次数:59
C语言判别亲密数
Description: 从小到大输出两个正整数m和n(m≥6,n≤5000)之间的亲密数对。说明:若a和b为一对亲密数,则a的因子和等于b,b的因子和等于a,且a不等于b。例如,220与284是一对亲密数。一个数的因子,即能被它整除的数,包含1,不包含它本身。 Input: m n Output: ...
分类:编程语言   时间:2020-05-08 11:27:45    阅读次数:219
最长公共子序列
#include<bits/stdc++.h> #define N 100 using namespace std; void output_array(int a[][N],int m,int n) { for(int i = 0; i < m; i++) { for(int j = 0; j < ...
分类:其他好文   时间:2020-05-07 19:33:29    阅读次数:56
用rod获取百度搜索结果的例子
package main import ( "fmt" "time" "github.com/ysmood/rod" "github.com/ysmood/rod/lib/input" "github.com/ysmood/rod/lib/launcher" ) func Example_reuse ...
分类:其他好文   时间:2020-05-07 19:26:29    阅读次数:64
质因数分解
Description: 输入一个正整数,将它分解为质因数(质数即素数)。例如,输入90,输出90=2*3*3*5。 Input: 90 Output: 90=2*3*3*5 Sample Input: 20 Sample Output: 20=2*2*5 代码: #include <stdio.h ...
分类:其他好文   时间:2020-05-07 01:05:37    阅读次数:90
共11375条   上一页 1 ... 54 55 56 57 58 ... 1138 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!