LL>PLL;constintN=1e6+3;constintINF=0x3f3f3f3f,mod=1e9+7;constdouble eps=1e-6,PI=acos(-1);string s[N];voidsolve(){int n;cin>>n;for(int i=0;i<n;i++)cin>>s[i];for(int i=n-1;i>=0;i--)cout<<s[i]<<endl;}intmain(){IOS;int _=1;// cin >> _;while(_--)...
defsolve():a,b=MI()print(f'{b / a:.3f}')for_inrange(1):solve() B. Line Sensor B - Line Sensoratcoder.jp/contests/abc274/tasks/abc274_b 给定一个N∗M的矩阵,问每列有多少个#。 1≤H,W≤1000 逐个元素遍历即可。 def solve(): h, w = MI() res = [0 for _ in range(...
using ll = long long; using VI = vector<ll>; using PII = pair<ll, ll>; const ll maxn = 2e5+5; const ll mx = 2e4+2; const ll pian = 1e4+20; const ll mod = 998244353; int fx[1003][maxn],fy[1003][maxn], a[maxn]; int x, y, n; int m = 0; void solve() {...
We will hold キーエンスプログラミングコンテスト2022(AtCoder Beginner Contest 274). Contest URL: https://atcoder.jp/contests/abc274 Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20221022T2100&p1=248 Duration: 100 minutes Number of Tasks: 8 Writer: Nyaan, kyo...
合集-Atcoder Beginner Contest 题解 AT_ABC406_E Popcount Sum 3 摘要:洛谷题目传送门 ATcoder题目链接 题目大意 给你正整数NN和KK。 求所有不超过NN且满足以下条件的正整数xx的 和(取模998244353998244353):xx的popcountpopcount恰好是KK。 给你TT阅读全文...
AtCoder Beginner Contest 273的C题是否需要使用动态规划来解决? A - A Recursive Function Origional Link 题目大意: 求f(k) 如下: f(0)=1; f(k)=k×f(k−1) 思想: 签到题。 代码: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 #include <iostream> #include <cstring> #include <cstdio...
AtCoder Beginner Contest 294 A - Filter (abc294 a) 题目大意 给定一个数组,不改变原顺序,输出是偶数的数。 解题思路 模拟即可。 神奇的代码 #include<bits/stdc++.h> usingnamespacestd; usingLL =longlong; intmain(void){ ios::sync_with_stdio(false);...
AtCoder Beginner Contest 277录屏 菜鸡up主赛后一分钟过E破大防 https://www.bilibili.com/video/BV1YR4y1Z7xf/ AtCoder Beginner Contest 277 E // 最短路 https://www.cnblogs.com/jakon/p/16888643.html https://www.cnblogs.com/empty-y/p/16886860.html ...
AtCoder Beginner Contest 242 补题记录 https://blog.csdn.net/bunny_1024/article/details/123305209 零点工作室暑假集训(AtCoder--ABC242) https://blog.csdn.net/weixin_73807663/article/details/131714591 AtCoder Beginner Contest 242, Rank 1 https://www.bilibili.com/video/BV12q4y1471K/ ...
AtCoder Beginner Contest 044 题解 A - Tak and Hotels (ABC Edit) 题目大意: 住\(N\) 天旅馆,前 \(K\) 天每晚 \(X\) 元,接下来每晚 \(Y\) 元。问:一共花多少钱? 解题思路: 直接一个if判断即可。 示例程序: #include <bits/stdc++.h>...