首页 > TAG信息列表 > 1076

1076 Wifi密码——15分

下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用wifi,又怕耽误亲们的学习,现将wifi密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”—— 老师们为了促进学生学习也是拼了…… 本题就要求你写程序把一系列题目的答案按照卷子上给出

[AcWing 1076] 迷宫问题

BFS + 记录方案 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1000 + 10; #define x first #define y second int n; int g[N][N]; int dx[] = {-1, 0, 1, 0}; int dy[] = {0, 1, 0, -1}; pair<int,int> ne[N][N

1076 Wifi密码 较简单

代码 #include <iostream> #include <cstdio> #include <string> using namespace std; int main() { string s; int n; cin>>n; getchar(); for(int i=0;i<n;i++){ getline(cin,s); for(int j=0;s[j]!=NULL;j++){ if(s[j]=='T�

信息学奥赛1076答案

#include<iostream>using namespace std;int main(int arac,char**argv){ int n,ss,sz,maxs=0; int sum=0; cin>>n; for(int i=1;i<=n;i++) { cin>>ss>>sz; if((ss>=90&&ss<=140)&&(sz>=60&&sz<=90)) {

BFS打印路径——1076. 迷宫问题

   可以用两种方式输出路径,一个正向(需要借助栈),一个是反向; BFS正向打印路径: #include <iostream> #include <cstring> #include <queue> #include <stack> #define x first #define y second using namespace std; const int N = 1010; typedef pair<int,int>PII; int g[

1076 Wifi密码 (15 分)

题目要求: 代码: 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();

1076-WIFI密码(15分)

下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用 wifi,又怕耽误亲们的学习,现将 wifi 密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”—— 老师们为了促进学生学习也是拼了…… 本题就要求你写程序把一系列题目的答案按照卷子

PAT乙级 1076 Wifi密码(C实现)

1076 Wifi密码 (15 分) 下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用 wifi,又怕耽误亲们的学习,现将 wifi 密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”—— 老师们为了促进学生学习也是拼了…… 本题就要求你写程序把一

1076 Forwards on Weibo

题目来源:PAT (Advanced Level) Practice Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a user makes a post o

1076 WIFI密码

参考解法: https://blog.csdn.net/shiliang97/article/details/99670697 我的代码(太长了) #include<iostream> using namespace std; int main(){ int n; char c[16]; cin>>n; int num[100]; for(int i=0;i<n;i++){ for(int j=0;j<12;j+

PAT乙级 1076 Wifi密码 (15 分)

下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用 wifi,又怕耽误亲们的学习,现将 wifi 密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”—— 老师们为了促进学生学习也是拼了…… 本题就要求你写程序把一系列题目的答案按照卷

[PAT乙级]1076 Wifi密码 (思路+精简代码)

1076 Wifi密码 下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用 wifi,又怕耽误亲们的学习,现将 wifi 密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”—— 老师们为了促进学生学习也是拼了…… 本题就要求你写程序把一系列题

1076 Forwards on Weibo (30 分)

Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a user makes a post on Weibo, all his/her followers can

Leetcode-Mysql题目及知识点总结(1076.项目员工II)

计算机小白QAQ,因为想找数分岗暑期实习所以充了会员想集中刷一下leetcode的mysql部分。写这个系列博文和大家们交流一下,后面也会持续更新面经准备的一些问题,欢迎同好们一起交流,求大佬轻喷QAQ。因为自己初学也走了很多弯路,所以会尽量写得详细一点,如果可以帮助到后来的朋友们,请各位

LSNUOJ 1076 整数位数处理

问题 A: 整数位数处理 题目描述 给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123 输入 一个不大于5位的数字 输出 三行 第一行 位数 第二行 用空格分开的每个数字,注意最后一个数字后没有空格 第三行 按

1076 Forwards on Weibo

Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a user makes a post on Weibo, all his/her followers can v

1076 Forwards on Weibo (30分)

1. 题目 2. 思路 利用vector<int> follows[MAXN] 存放节点 存放为关注我的,而不是我关注的 使用两个queue,一层层向外,使用visited存储是否被访问过 3. 注意点 MAXN的定义为1001,因为下标从1开始 每次visited都需要恢复原来状态(全为false,因为系统默认初始化false) 4. 代码 #incl

PTA乙级1076,wifi密码

分析:参考一下柳婼的妙法~ n没什么作用~以字符串方式接收输入,只要遇到任何一个字符串s满足大小为3且s[2]为’T’,就将s[0]字母对应的wifi密码输出~ #include <iostream> using namespace std; int main() { string s; while (cin >> s) if(s.size() == 3 && s[

1076 Wifi密码 (15 分)

题目:传送门 下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用 wifi,又怕耽误亲们的学习,现将 wifi 密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”—— 老师们为了促进学生学习也是拼了…… 本题就要求你写程序把一系列题目的答案

Tyvj 1076 数字三角形2 要求走到最后mod 100最大

题目: 数字三角形2 从三角形顶端走到最下面一行所经过数字的和sum mod 100要最大   个人感想 最近做了一个特别新颖的DP问题,数字三角形2,网址为:http://www.joyoi.cn/problem/tyvj-1076 大家都知道,数字三角形1,是个特别适合DP入门的DP问题,就是从三角形顶端走到最下面一行所经过数

PAT 1076 Forwards on Weibo

1076 Forwards on Weibo (30 分)   Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a user makes a pos

PTA(Basic Level) Practice-1076 Wifi密码

一 题目介绍:      现将 wifi 密码设置为下列数学题答案:A-1;B-2;C-3;D-4。本题就要求你写程序把一系列题目的答案按照卷子上给出的对应关系翻译成 wifi 的密码。这里简单假设每道选择题都有 4 个选项,有且只有 1 个正确答案。        输入格式:        输入第一行给出一个正整

1076 Wifi密码 (15 分)

#include<bits/stdc++.h>using namespace std;int a[5];int main(){ int i,n,j; a['A']=1;a['B']=2;a['C']=3;a['D']=4;a['E']=5; scanf("%d",&n); getchar(); for(i=0;i<n;i++)

PAT-B 1076 Wifi密码

                                            PAT-B 1076 Wifi密码                   https://pintia.cn/problem-sets/994805260223102976/problems/994805262622244864     题目 下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有