//https://www.acmicpc.net/problem/12790 #include using namespace std; int main(){ int T; cin >> T; int hp, mp, atk,def; int a,b,c,d,ans; for(int i=0; i> hp >> mp >> atk >> def >> a >> b >> c >> d; hp+=a; mp+=b; atk+=c; def+=d; if(hp
//https://www.acmicpc.net/problem/1789 #include using namespace std; int main(){ long long S; cin >> S; int i=0; while(1) { i++; S-=i; if(S
//https://www.acmicpc.net/problem/10886 #include using namespace std; int main(){ bool x; int N; cin >> N; int cnt=0; for(int i=0; i> x; if(x) cnt++; else //x==0 cnt--; } if(cnt>0) cout
//https://www.acmicpc.net/problem/10798 #include #include using namespace std;char word[5][15];int main(){ for(int i=0; i> word[i]; for(int i=0; i