Git Product home page Git Product logo

彭福's Projects

adjacency-matrix icon adjacency-matrix

题目描述 Give you a directed graph G with n nodes and m edges. Please print the adjacency matrix A of G. Hints: adjacency matrix is a way to represent a graph. Suppose we have a directed graph G, if there is an edge from node i to node j in G, we have A[i][j] = 1 in G’s corresponding adjacency matrix A, otherwise, A[i][j] = 0. 输入 The first line will be an integer T (1 <= T <= 50). T is the number of test case. For each test case, the first line will be two integers n and m. ( 1 <= n <= 500, 0 <= m <= n*n) Then there will be m lines. Each line will have two integers x y. x y means there is an edge from x to y. All nodes are labeled from 1 to n. 输出 For each test case, print the adjacency matrix. 样例输入 2 3 5 1 2 2 1 1 3 3 2 2 3 1 0 样例输出 0 1 1 1 0 1 0 1 0 0

ailearning icon ailearning

AiLearning: 机器学习 - MachineLearning - ML、深度学习 - DeepLearning - DL、自然语言处理 NLP

aurora-imui icon aurora-imui

General IM UI components. Android/iOS/RectNative ready. 通用 IM 聊天 UI 组件,已经同时支持 Android/iOS/RN。

auto-attack icon auto-attack

Code relative to "Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks"

autoae icon autoae

AAAI-23: Reliable Robustness Evaluation via Automatically Constructed Attack Ensembles

awesome-courses icon awesome-courses

:books: List of awesome university courses for learning Computer Science!

cntk icon cntk

Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit

cvpr_2021_papers icon cvpr_2021_papers

CVPR2021最新论文汇总,主要包括:Transformer, NAS,模型压缩,模型评估,图像分类,检测,分割,跟踪,GAN,超分辨率,图像恢复,去雨,去雾,去模糊,去噪,重建等等

document-scanner icon document-scanner

全能扫描王类似截取文档所在位置,然后透视变换回正常位置

drn icon drn

Closed-loop Matters: Dual Regression Networks for Single Image Super-Resolution

federated-learning icon federated-learning

A PyTorch Implementation of Federated Learning http://doi.org/10.5281/zenodo.4321561

models icon models

Models and examples built with TensorFlow

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.