小红书2020校招测试开发&后端笔试题卷一

https://blog.csdn.net/weixin_43180675/article/details/106734077

小红书2020校招测试开发&后端笔试题卷一_第1张图片

  public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        Stack stack = new Stack<>();
        StringBuffer sb = new StringBuffer("");
        int bracket = 0;
        for(int i =0;i

 

小红书2020校招测试开发&后端笔试题卷一_第2张图片

import java.util.*;
public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] agreeArr = new int[num];
        for(int i = 0;i

 

小红书2020校招测试开发&后端笔试题卷一_第3张图片

package com.example.demo;

import java.util.Scanner;

/**
 * Created by xuliwei on 2020/6/25.
 */
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int sum = sc.nextInt();
        String str = sc.next();
        String[] split = str.substring(1,str.length()-1).split(",");
        int[] prices = new int[split.length];
        for(int i = 0;i

 

你可能感兴趣的:(牛客网)