Codeforces Round #512 (Div. 2, based on Technocup 2019 Elimination Ro A. In Search of an Easy Proble
生活随笔
收集整理的這篇文章主要介紹了
Codeforces Round #512 (Div. 2, based on Technocup 2019 Elimination Ro A. In Search of an Easy Proble
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
題解
n個數(shù)字 判斷是否有1。。
AC代碼
#include <stdio.h> #include <bits/stdc++.h> using namespace std; typedef long long ll;const int INF = 0x3f3f3f3f;int main() { #ifdef LOCALfreopen("C:/input.txt", "r", stdin); #endifint n;cin >> n;for (int i = 0; i < n; i++){int t;cin >> t;if (t)cout << "HARD" << endl, exit(0);}cout << "EASY" << endl;return 0; }總結
以上是生活随笔為你收集整理的Codeforces Round #512 (Div. 2, based on Technocup 2019 Elimination Ro A. In Search of an Easy Proble的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 得力计算机1526弹音乐,得力1526计
- 下一篇: 单片机课设中期报告_本科论文中期报告