当前位置:网站首页>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);
}
}
结果:
边栏推荐
- 我的创作纪念日丨感恩这365天来有你相伴,不忘初心,各自精彩
- JVM学习——3——数据一致性
- SQL滑动窗口
- Activity的四种状态
- buu—Re(5)
- When MySQL uses GROUP BY to group the query, the SELECT query field contains non-grouping fields
- Douyin API interface
- Redis source code: how to view the Redis source code, the order of viewing the Redis source code, the sequence of the source code from the external data structure of Redis to the internal data structu
- 【Pytorch】nn.ReLU(inplace=True)
- 1071 小赌怡情 (15 分)
猜你喜欢
随机推荐
【LaTex-错误和异常】\verb ended by end of line.原因是因为闭合边界符没有在\verb命令所属行中出现;\verb命令的正确和错误用法、verbatim环境的用法
TF中的条件语句;where()
go-grpc TSL认证 解决 transport: authentication handshake failed: x509 certificate relies on ... ...
LeetCode刷题系列 -- 46. 全排列
伦敦银规则有哪些?
测试用例很难?有手就行
DDR4内存条电路设计
常见激活函数及其导数
1002 写出这个数 (20 分)
1101 How many times B is A (15 points)
1046 punches (15 points)
tf.cast(), reduce_min(), reduce_max()
接入网、承载网、核心网是什么,交换机路由器是什么、这个和网络的协议有什么关系呢?
从苹果、SpaceX等高科技企业的产品发布会看企业产品战略和敏捷开发的关系
Serverless + domain name can also build a personal blog? Really, and soon
联想集团:2022/23财年第一季度业绩
【软件测试】(北京)字节跳动科技有限公司二面笔试题
恒源云-Pycharm远程训练避坑指南
Resolved EROR 1064 (42000): You have an error in. your SOL syntax. check the manual that corresponds to yo
Tensorflow中使用tf.argmax返回张量沿指定维度最大值的索引