C - Merge the balls
Time Limit: 2 sec / Memory Limit: 1024 MB
Score 250 points
Problem Statement
You have an empty sequence and 𝑁N balls. The size of the 𝑖i-th ball (1≤𝑖≤𝑁) is 2^A[i]
You will perform…
比赛链接
A - Takahashi san 2
题目及数据范围: 思路:
读入字符串,检查最后几个字符是不是san。
代码:
#include<bits/stdc.h>
#define int long long
#define endl \n
using namespace std;signed main(){ios::sync_w…
Toyota Programming Contest 2024#8(AtCoder Beginner Contest 365) - AtCoder
A:Leap Year 思路:
直接枚举判断就可以
#include<bits/stdc.h>
using namespace std;#define fir first
#define sec second
#define endl …