当前位置:网站首页>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);
}
}
结果:
边栏推荐
猜你喜欢
随机推荐
公牛10-11德里克·罗斯最强赛季记录
TF中使用softmax函数;
Unity程序员如何提升自己的能力
【Pytorch】nn.PixelShuffle
TF中的条件语句;where()
动态代理学习
Trill keyword search goods - API
Pytorch模型转ONNX模型
C语言每日一练——Day02:求最小公倍数(3种方法)
联想集团:2022/23财年第一季度业绩
1036 跟奥巴马一起编程 (15 分)
流式结构化数据计算语言的进化与新选择
prometheus学习5altermanager
How Unity handles C# under the hood
STM32CUBEIDE(11)----输出PWM及修改PWM频率与占空比
6月各手机银行活跃用户较快增长,创半年新高
求职简历这样写,轻松搞定面试官
ROS 话题通信理论模型
【latex异常和错误】Missing $ inserted.<inserted text>You can‘t use \spacefactor in math mode.输出文本要注意特殊字符的转义
1046 划拳 (15 分)








