3.20打卡day34

进阶2.回文数

问题描述

1221是一个非常特殊的数,它从左边读和从右边读是一样的,编程求大于等于n的所有这样的四位十进制数。

个人总结

本题可以枚举所有可能的千位 a(1 到 9),十位和百位 b(0 到 9),构造数num = a*1000 + b*100 + b*10 + a,然后判断num>=n就输出。

cpp 复制代码
#include <bits/stdc++.h>
using namespace std;



int main() {
    int n;
    cin >> n;

    for (int a = 1; a <= 9; a++) {
        for (int b = 0; b <= 9; b++) {
            int num = a * 1000 + b * 100 + b * 10 + a;
            if (num >= n) {
                cout << num << endl;
            }
        }
    }

    return 0;
}

计算机英语翻译

原文:

In recent years, pre-trained models have played an important role in artificial intelligence research. Researchers typically first train a general model using large-scale datasets and then fine-tune it on specific tasks. In this way, the model can utilize the knowledge learned during the pre-training stage to improve the performance of downstream tasks. For example, in the field of natural language processing, many language models are pre-trained on massive text corpora and achieve excellent results in tasks such as text classification, machine translation, and question answering. The pre-training and fine-tuning framework not only reduces training costs but also improves the generalization ability of models. Therefore, this approach has become an important paradigm in modern artificial intelligence research.

翻译:

近年来,预训练模型在人工智能研究中扮演了重要角色。研究者们通常首先使用大规模的数据集来训练一个总体的模型,然后在特定任务中进行微调。以这种方式,这个模型可以xx预训练阶段学到的知识来提升xx任务的表现。例如,在自然语言处理领域,许多语言模型在大量文本xx上进行预训练,并且在文本分类、机器翻译和问题回答等任务中取得优异的成功。预训练和微调架构不仅减少了训练开销而且提升了模型的总体能力。因此,这种方式已经成为现代人工智能研究的重要方式。

计算机英语单词扇贝打卡

相关推荐
j_xxx404_2 小时前
Linux:静态链接与动态链接深度解析
linux·运维·服务器·c++·人工智能
昵称小白2 小时前
复杂度分析方法
算法
科研前沿2 小时前
2026 数字孪生前沿科技:全景迭代报告 —— 镜像视界生成式孪生(Generative DT)技术白皮书
大数据·人工智能·科技·算法·音视频·空间计算
c++之路3 小时前
C++23概述
java·c++·c++23
学涯乐码堂主4 小时前
有趣的“打擂台算法”
c++·算法·青少年编程·gesp
切糕师学AI5 小时前
环形缓冲区(Ring Buffer / Circular Buffer)详解:原理、优势、应用与高性能实现
数据结构·环形缓冲区
Tutankaaa5 小时前
知识竞赛题库设计全攻略
人工智能·算法
云栖梦泽5 小时前
Linux内核与驱动:14.SPI子系统
linux·运维·服务器·c++
WolfGang0073215 小时前
代码随想录算法训练营 Day50 | 图论 part08
数据结构·算法·图论
Gary Studio5 小时前
安卓HAL C++基础-智能指针
开发语言·c++