当前位置:网站首页>Sparse array ^ create ^ restore ^ save ^ fetch -- family bucket
Sparse array ^ create ^ restore ^ save ^ fetch -- family bucket
2022-06-22 09:14:00 【C_ x_ three hundred and thirty】
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++) {
边栏推荐
- STM32在线升级BootLoader跳转APP时死机问题
- Process status summary
- simple_strtoull字符转换相关函数
- threejs实现简单全景看房demo
- It is hoped that more and more women will engage in scientific and technological work
- Solidity from introduction to practice (II)
- DOM编程
- 機器學習|nltk_Data下載錯誤|nltk的stopwords語料下載錯誤解决方法
- 版本问题导致“无法定位程序输入点OPENSSL_sk_new_reserve于动态链接库C:\Users...\libssl-1_1-x64.dll”
- 经典&&案例
猜你喜欢
随机推荐
simple_ Strtoull character conversion related functions
OpenCV每日函数 直方图相关(3)
Originality: dozens of lines of pure PHP code decrypt goto encrypted PHP single file [for learning only]
. A use of file link library
[target detection] | detection error mechanism why object detectors fail: investigating the influence of the dataset
【详解】神经网络矩阵的点乘与叉乘(pytorch版)
PHP online common color comparison table
一文走近ZMQ
copy_ from_ User and copy_ to_ user
医疗信息管理系统数据库--MySQL
【uni-app】实战总结(含多端打包)
scnprintf和snprintf的区别
Record some Oracle operation commands
[qnx hypervisor 2.2 user manual]5.6 close guest
MSSQL injection of SQL injection
MySQL field attribute list sends a document for future reference
Threejs implementation of simple panoramic view demo
值(址)传递,看清名字,别掉沟里
Stream流创建_操作_收集_案例
Local visualization method of xshell remote server tensorboard/visdom [one-step test is effective]









