当前位置:网站首页>1056 组合数的和 (15 分)
1056 组合数的和 (15 分)
2022-08-11 06:46:00 【呆比特】
题目要求:
代码:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//輸入
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
String array[] = new String[n];
for (int i = 0; i < n; i++) {
array[i] = scanner.next();
}
int sum = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (i != j)
sum += Integer.valueOf(array[i] + array[j]);
}
}
System.out.println(sum);
}
}
结果:
边栏推荐
- 软件测试基本流程有哪些?北京专业第三方软件检测机构安利
- Pico neo3 Unity打包设置
- Redis源码:Redis源码怎么查看、Redis源码查看顺序、Redis外部数据结构到Redis内部数据结构查看源码顺序
- buu—Re(5)
- 【Pytorch】nn.ReLU(inplace=True)
- tf.reduce_mean()与tf.reduce_sum()
- 2022-08-10 第四小组 修身课 学习笔记(every day)
- A used in the study of EEG ultra scanning analysis process
- break pad源码编译--参考大佬博客的总结
- Activity的四种状态
猜你喜欢

Edge 提供了标签分组功能

How to choose professional, safe and high-performance remote control software

1688 product interface

基于FPGA的FIR滤波器的实现(4)— 串行结构FIR滤波器的FPGA代码实现

Pinduoduo API interface

2022年中国软饮料市场洞察

tf.reduce_mean()与tf.reduce_sum()

Implement general-purpose, high-performance sorting and quicksort optimizations

Daily sql--statistics the total salary of employees in the past three months (excluding the latest month)

Coordinate system in navigation and positioning
随机推荐
接口测试的基础流程和用例设计方法你知道吗?
《猪猪1984》NFT 作品集将上线 The Sandbox 市场平台
第一个C函数:如何实现板级初始化?
SQL sliding window
TF中的四则运算
易观分析联合中小银行联盟发布海南数字经济指数,敬请期待!
Taobao product details API interface
从苹果、SpaceX等高科技企业的产品发布会看企业产品战略和敏捷开发的关系
How do you optimize the performance of your Unity project?
关于Android Service服务的面试题
MySQL使用GROUP BY 分组查询时,SELECT 查询字段包含非分组字段
如何选择专业、安全、高性能的远程控制软件
Internet phone software or consolidation of attack must be "free" calls security clearance
Taobao API interface reference
Daily SQL - find each of the students school gpa minimum (window)
3GPP LTE/NR信道模型
Waldom Electronics宣布成立顾问委员会
A used in the study of EEG ultra scanning analysis process
unable to extend table xxx by 1024 in tablespace xxxx
基于FPGA的FIR滤波器的实现(4)— 串行结构FIR滤波器的FPGA代码实现