当前位置:网站首页>稀疏数组^创建^还原^存盘^取盘--全家桶
稀疏数组^创建^还原^存盘^取盘--全家桶
2022-06-22 09:10:00 【C_x_330】
package com.Cx_330.run;
import org.junit.Test;
import java.io.*;
import java.math.BigDecimal;
import java.nio.charset.StandardCharsets;
import java.util.*;
public class CCC {
public static void main(String[] args) throws Exception {
int[][] arr=new int[9][9];
arr[2][2]=1;
arr[3][3]=2;
arr[4][4]=1;
arr[5][5]=2;
int sum=0;
for (int[] i:arr){
for (int j:i){
if(j!=0){
sum++;
}
System.out.print(j+" ");
}
System.out.println();
}
int[][] str=new int[sum+1][3];
str[0][0]=arr.length;
str[0][1]=arr[0].length;
str[0][2]=sum;
int count=1;
for (int i = 0; i < arr.length; i++) {
for (int i1 = 0; i1 < arr[0].length; i1++) {
边栏推荐
- Threejs implementation of simple panoramic view demo
- Webrtc series - iceconfig and stunping failure handling for network transmission
- What is defi and what mode is defi?
- Navicat for MySQL连接MySQL数据库时各种错误解决
- .a文件链接库的使用
- 医疗信息管理系统数据库--MySQL
- Php+stripe payment API, the latest PHP version of stripe overseas payment tutorial
- Pytorch oserror: DLL load failed: problem solving
- 三个不同线程顺序打印ABC十种写法【并发编程JUC】
- C语言刷题 | 温度转换(11)
猜你喜欢
![Wireless routing attack and WiFi password cracking practice [penetration technology]](/img/b9/3551630c128e03731a956c6a6502e2.jpg)
Wireless routing attack and WiFi password cracking practice [penetration technology]

模板引擎,让交互变得优雅

Solidity from introduction to practice (III)

Interview shock 59: can there be multiple auto increment columns in a table?

Solidity from introduction to practice (II)

面试突击59:一个表中可以有多个自增列吗?

The third-party libraries commonly used in golang development are not the most complete, but more complete

np. Arange and np Linspace nuances (data overflow problem)

嵌入式开发专业术语概念汇总
![Local visualization method of xshell remote server tensorboard/visdom [one-step test is effective]](/img/42/6f5121c472e25990df98c2b119b8c9.png)
Local visualization method of xshell remote server tensorboard/visdom [one-step test is effective]
随机推荐
Alibaba big fish SMS interface PHP version, simplified version Alibaba big fish SMS sending interface PHP instance
C语言刷题 | 判断某年是否只闰年(15)
Php+stripe payment API, the latest PHP version of stripe overseas payment tutorial
Medical information management system database mysql
PIP3 install XXX reports an error: command'lsb_ release -a' returned non-zero exit status 1.
The third-party libraries commonly used in golang development are not the most complete, but more complete
What is defi and what mode is defi?
医疗信息管理系统数据库--MySQL
Read all files under the folder in the jar package
Deep learning - (1) RESNET implementation
Flask blog practice - form validation using wtforms
General ASP reads CSV files and displays all rows and columns as tables
It is hoped that more and more women will engage in scientific and technological work
两个线程各执行100次i++,得到的可能值
Originality: dozens of lines of pure PHP code decrypt goto encrypted PHP single file [for learning only]
simple_strtoull字符转换相关函数
MSSQL injection of SQL injection
DOM编程
Matrix decomposition
pytorch OSError: DLL load failed: 问题解决方法