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(_--)...
AtCoder Beginner Contest 284 A - Sequence of Strings (abc284 a) 题目大意 顺序给定nn个字符串,倒着顺序输出。 解题思路 模拟即可。 神奇的代码 #include<bits/stdc++.h> usingnamespacestd; usingLL =longlong; intmain(void){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); intn; c...
AtCoder Beginner Contest 284 A-F https://atcoder.jp/contests/abc284 被D卡了,感觉十分的弱智。 GEx看不懂题解( A - Sequence of Strings #include <bits/stdc++.h> using namespace std; int main () { vector <string> v; int n; cin >> n; while (n --) { string s; cin >> s; ...
AtCoder Beginner Contest 284 - AtCoderatcoder.jp/contests/abc284 A. Sequences of Strings A - Sequence of Stringsatcoder.jp/contests/abc284/tasks/abc284_a 给定N 个字符串,逆序输出这些字符串。 def solve(testcase): n = II() print(*[I() for _ in range(n)][::-1], sep = ...
We will hold AtCoder Beginner Contest 284. Contest URL:https://atcoder.jp/contests/abc284 Start Time:http://www.timeanddate.com/worldclock/fixedtime.html?iso=20230107T2100&p1=248 Duration: 100 minutes Number of Tasks: 8 Writer:Nyaan,yuto1115 ...
链接: E - Count Simple Paths分析: 这里要求解的是无向图,从一个节点出发的所有不同路径的个数,用DFS从节点开始进行遍历,这里和一般DFS不同的是,同一个节点可以多次访问, 只要保证每次递归的时候, 从初始节…
AtCoder Beginner Contest 283 E. Don‘t Isolate Elements(预支下一行状态的状压dp) https://blog.csdn.net/Code92007/article/details/128437835 AtCoder Beginner Contest 283 - a new beginning https://www.cnblogs.com/lnwhl/p/17018157.html
AtCoder Beginner Contest 287-E题(字典树/Trie https://zhuanlan.zhihu.com/p/603720615 AtCoder Beginner Contest 287 D 和 E https://zhuanlan.zhihu.com/p/602258994 AtCoder Beginner Contest 287 DEF EX https://zhuanlan.zhihu.com/p/613355266 ...
AtCoder Beginner Contest 044 题解 A - Tak and Hotels (ABC Edit) 题目大意: 住\(N\) 天旅馆,前 \(K\) 天每晚 \(X\) 元,接下来每晚 \(Y\) 元。问:一共花多少钱? 解题思路: 直接一个if判断即可。 示例程序: #include <bits/stdc++.h>...
AtCoder Beginner Contest 042题解(ABCD) 传送门 A - Iroha and Haiku (ABC Edition) 签到题,直接判断是否是两个5 55,一个7 77。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7;...