当前位置:网站首页>1076 Wifi Password (15 points)
1076 Wifi Password (15 points)
2022-08-11 07:48:00 【dumb bit】
题目要求:
代码:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) {
String[] s = sc.nextLine().split(" ");
for (int j = 0; j < s.length; j++) {
if (s[j].contains("T")){
sb.append(Integer.valueOf(s[j].charAt(0)) - 64);
}
}
}
System.out.println(sb);
}
}
结果:
边栏推荐
猜你喜欢
随机推荐
prometheus学习5altermanager
2021-08-11 for循环结合多线程异步查询并收集结果
2.1-梯度下降
TF中使用softmax函数;
【推荐系统】:协同过滤和基于内容过滤概述
博途PLC 1200/1500PLC ModbusTcp通信梯形图优化汇总(多服务器多从站轮询)
Implementation of FIR filter based on FPGA (5) - FPGA code implementation of parallel structure FIR filter
1051 Multiplication of Complex Numbers (15 points)
opencv实现数据增强(图片+标签)平移,翻转,缩放,旋转
How Unity programmers can improve their abilities
Redis源码:Redis源码怎么查看、Redis源码查看顺序、Redis外部数据结构到Redis内部数据结构查看源码顺序
oracle19c不支持实时同步参数,请教一下大佬们有什么好的解决办法吗?
结合均线分析k线图的基本知识
3.1-分类-概率生成模型
1051 复数乘法 (15 分)
What are the things that should be planned from the beginning when developing a project with Unity?How to avoid a huge pit in the later stage?
机器学习总结(二)
【软件测试】(北京)字节跳动科技有限公司终面HR面试题
1096 大美数 (15 分)
1091 N-Defensive Number (15 points)