首页 > 其他分享 >UNIQUE VISION Programming Contest 2024 Autumn (AtCoder Beginner Contest 372)

UNIQUE VISION Programming Contest 2024 Autumn (AtCoder Beginner Contest 372)

时间:2024-09-21 21:48:29浏览次数:1  
标签:2024 题意 Contest long Autumn solve using 372

总结(我的塘人局):

单调栈是忘得差不多了 

A - delete .

题意:

输出删除所有'.'的字符串

思路:

遍历输出不是'.'

复杂度:

O(n) 

Code:

#include <bits/stdc++.h>
    
using namespace std;
using LL = long long;
using i64 = int64_t; 

void solve() {
    string s;
    cin >> s;
    for (char c : s) {
        if (c != '.') cout << c;
    }
}

int main() {
    cin.tie(0) -> sync_with_stdio(false);
    int t = 1;
    // cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}

  

B - 3^A

题意:

给定一个M, 存在一个N和A数组满足长度

D - Buildings

类似力扣的一题:

1944. 队列中可以看到的人数 - 力扣(LeetCode)

标签:2024,题意,Contest,long,Autumn,solve,using,372
From: https://www.cnblogs.com/iters/p/18424546

相关文章

  • ABC372 (D,E)
    ABC372(D,E)D一道比较简单的二分查找题目。观察到每个数能成为\(j\)的条件是独立的,因此想到统计每个数能成为它前面哪些数的\(j\)。对于每个\(ed​\),二分\(1\simed-1​\)中最后一个大于\(h[ed]​\)的数的位置\(st​\),那么\(h[ed]​\)可作为\(st\simed-1......
  • The 2024 ICPC Asia East Continent Online Contest (I)——F. Make Max
    https://qoj.ac/contest/1794/problem/9313#include<bits/stdc++.h>#definexfirst#defineysecondusingnamespacestd;typedeflonglongll;typedefpair<ll,ll>pii;constintN=2e5+10,mod=1e9+7;lln,m,q;inta[N],stk[N],tt;intl[N],r[N];......
  • 设计资料保存:372-基于XC7VX690T的万兆光纤、双FMC扩展的综合计算平台 RISCV 芯片验证
      一、板卡概述      基于V7的高性能PCIe信号处理板,板卡选用Xilinx 公司Virtex7系列FPGA XC7VX690T-2FFG1761C为处理芯片,板卡提供两个标准FMC插槽,适用于高性能采集、回放以及相关处理。通过连接不同的FMC子卡的方式,可实现不同形式的数据采集、回放、处理的功能模块。板......
  • SMU Autumn 2024 Trial 2
    A.Stand-upComedian只要a不为0,那么由于b和c是相互制约的,比如25106这个样例,讲完两个笑话以后两个人的容量为22,可以选择一个人+1,一个人-1,那么就可进行min(b,c)*2次,进行完后,两个人的容量仍为2,2,最后要看还剩几个笑话可以讲,就是min(a+1,abs(b-c)+d),就是容量很大时可以把笑话全讲完,......
  • The 2024 CCPC Online Contest
    https://codeforces.com/gym/105336B-军训II排序后肯定是最优解,方案数就是能排成有序序列的个数#include<bits/stdc++.h>usingnamespacestd;usingi32=int32_t;usingi64=longlong;usingi128=__int128;#defineinti64usingvi=vector<int>;using......
  • The 2024 ICPC Asia East Continent Online Contest (I)
    目录写在前面M签到F笛卡尔树or单调栈,dfsorST表,排序A大力讨论,结论G二分答案,前缀和C结论,图论,剩余系,线性代数L图论转化,建图技巧,最短路H括号序列,网络流写在最后写在前面补题地址:https://codeforces.com/contest/2005。以下按个人难度向排序。复刻CCPC网赛开头超顺利......
  • ECON 3720: Introduction to Econometrics
    ECON 3720: Introduction to EconometricsProblem Set 02Fall Semester 2024Due: September 20th 2024Please submit the problem set no later than 5 PM on September 20th 2024. Submit the problem set to your TA’s mailbox in th......
  • The 2022 ICPC Asia Xian Regional Contest
    目录写在前面F签到J签到C贪心,模拟G字符串,哈希L贪心,结论E数学,模拟B结论,网络流ALCTor根号预处理or线段树分治维护连通性D倍增,DP写在最后写在前面比赛地址:https://codeforces.com/gym/104077。以下按个人向难度排序。vp8题900+罚时差100罚时金。唉唉现在题数......
  • 设计方案:372-基于7VX690T的万兆光纤、双FMC扩展的综合计算平台 RISCV 芯片验证平台
    基于7VX690T的万兆光纤、双FMC扩展的综合计算平台RISCV芯片验证平台 一、板卡概述      基于V7的高性能PCIe信号处理板,板卡选用Xilinx 公司Virtex7系列FPGA 7VX690T-2FFG1761C为处理芯片,板卡提供两个标准FMC插槽,适用于高性能采集、回放以及相关处理。通过连接不同的FMC......
  • 2017 ACM/ICPC Asia Regional Qingdao Online(SDKD 2024 Summer Training Contest J2)
    C-TheDominatorofStrings题意给定n个串,问是否有一个串包含其他所有串,有就输出这个串。思路如果有解,答案必定是最长串,一一比较即可。(没想到.find()就能过......