代码(签到题) cpp #include <cstdio> #include <cctype> using namespace std; int ans,n; int iut(){ int ans=0,f=1; char c=getchar(); while (!isdigit(c)) f=(c=='-')?-f:f,c=getchar(); while (isdigit(c)) ans=ans*10+c-48,c=getchar(); return ans*f; } int main(){...
Toyota Programming Contest 2024#8(AtCoder Beginner Contest 365) - AtCoderatcoder.jp/contests/abc365 A题 思路:判断闰年 AC代码: #include <bits/stdc++.h> using namespace std; #define double long double #define int long long typedef long long i64; typedef unsigned long long ull; typedef...
hint:本题数据规模较大,需要使用long long类型存储数据。 代码 #include <bits/stdc++.h> using namespace std; typedef long long ll; void solve(){ ll n; cin >> n; ll num = n / 10; if (n > 0 && n % 10 != 0) num++; cout << num << endl; } int main(){ solve(); return...
AtCoder Beginner Contest 359 A - Count Takahashi (abc359 A) 题目大意 给定nn个字符串,问有多少个字符串是Takahashi 解题思路 注意判断比较即可。 神奇的代码 #include<bits/stdc++.h> usingnamespacestd; usingLL =longlong; intmain(void){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)...
AtCoder Beginner Contest 042题解(ABCD) 传送门 A - Iroha and Haiku (ABC Edition) 签到题,直接判断是否是两个 5 5 5,一个 7 7 7。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7; ...
AtCoder Beginner Contest 101 完整解题报告,A题#include<iostream>usingnamespacestd;intmain(){strings;cin>>s;intcnt1=0,cnt2=0;for(inti=0;i<4;i++){if('+'==s[i])...
2、本周日(5月19日)晚上19点在B站开始 AtCoder Beginner Contest 354的题解直播讲解 3、观看方式: 复制下方链接或直接扫描二维码,PC端建议使用chrome浏览器 https://live.bilibili.com/21371611?live_from=84002 或识别下方二维码查看: 注意:如不能正常显示请在哔站搜索栏查找“清北学堂信息学”账号(录播也发布...
atcoder beginner contest后缀数组例题 以下是一道与后缀数组相关的AtCoder Beginner Contest上的例题解析: 问题描述: 给定一串长度为N(1 ≤ N ≤ 10^5)的字符串S,求字符串S的所有后缀排序后的字符串列表。 解题思路: 这道题可以使用后缀数组来解决。后缀数组是一个字符串的所有后缀按照字典序排序后的数组。
atcoder beginner contest 后缀数组例题atcoder beginner contest后缀数组例题 AtCoder Beginner Contest - Suffix Array Example Introduction: Suffix arrays are important data structures in string manipulation and analysis. They provide a way to efficiently sort all the suffixes of a given string or array. ...