欧美1区2区3区激情无套,两个女人互添下身视频在线观看,久久av无码精品人妻系列,久久精品噜噜噜成人,末发育娇小性色xxxx

漢得信息 筆試 編程題個(gè)人答案

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long N = in.nextLong();
        long sum = 1;
        for (int i = 0; i < N; i++) {
            long M = in.nextLong();
            sum *= M;
            if (sum >= 1_0000_0000) {
                System.out.println("TLE");
                return;
            }
        }
        System.out.println(sum);
    }
}

# 這里是樣例數(shù)據(jù),答案在最下面

drop table if exists `info_tb`;
CREATE TABLE `info_tb`
(
    `info_id`    int(11)    NOT NULL,
    `info_l`     varchar(8) NOT NULL,
    `info_pv`    int(16)    NOT NULL,
    `praise_num` int(16)    NOT NULL,
    PRIMARY KEY (`info_id`)
);
INSERT INTO info_tb
VALUES (1, '軍事', 256, 45);
INSERT INTO info_tb
VALUES (2, '體育', 156, 23);
INSERT INTO info_tb
VALUES (3, '軍事', 234, 35);
INSERT INTO info_tb
VALUES (4, '娛樂', 572, 160);
INSERT INTO info_tb
VALUES (5, '政要', 278, 45);
INSERT INTO info_tb
VALUES (6, '體育', 450, 130);

drop table if exists `put_action_tb`;
CREATE TABLE `put_action_tb`
(
    `put_info_id` int(11)  NOT NULL,
    `put_author`  int(16)  NOT NULL,
    `put_time`    datetime NOT NULL,
    PRIMARY KEY (`put_info_id`)
);
INSERT INTO put_action_tb
VALUES (1, 101, '2022-02-18 08:30:00');
INSERT INTO put_action_tb
VALUES (2, 102, '2022-02-18 08:31:00');
INSERT INTO put_action_tb
VALUES (3, 101, '2022-02-18 08:42:00');
INSERT INTO put_action_tb
VALUES (4, 103, '2022-02-18 09:33:00');
INSERT INTO put_action_tb
VALUES (5, 101, '2022-02-18 16:34:00');
INSERT INTO put_action_tb
VALUES (6, 104, '2022-02-18 10:35:00');

drop table if exists `author_tb`;
CREATE TABLE `author_tb`
(
    `author_id`   int(11)    NOT NULL,
    `author_name` varchar(8) NOT NULL,
    `fans_num`    int(16)    NOT NULL,
    PRIMARY KEY (`author_id`)
);
INSERT INTO author_tb
VALUES (101, 'Aran', 1000);
INSERT INTO author_tb
VALUES (102, 'James', 500);
INSERT INTO author_tb
VALUES (103, 'Bill', 3000);
INSERT INTO author_tb
VALUES (104, 'Angel', 3000);

# 下面是答案

select author_name,
       sum(info_pv)    pv_nums,
       sum(praise_num) praise_nums
from author_tb
         join put_action_tb on author_id = put_author
         join info_tb on info_id = put_info_id
group by author_name
order by author_name;

全部評(píng)論
題目:http://fangfengwang8.cn/feed/main/detail/591b8edaf7ee49f3ad93c9b59413cf8e
1 回復(fù) 分享
發(fā)布于 05-10 16:22 遼寧

相關(guān)推薦

點(diǎn)贊 評(píng)論 收藏
分享
評(píng)論
1
收藏
分享

創(chuàng)作者周榜

更多
??途W(wǎng)
牛客企業(yè)服務(wù)