Submission #43116117


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;

#define fi first
#define se second
#define repl(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define rep(i,n) repl(i,0,n)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define uni(x) x.erase(unique(all(x)),x.end())
#define exist(x,y) (find(all(x),y)!=x.end())
#define bcnt __builtin_popcountll

#define INF 1e16
#define mod 1000000007

ll N=8;
ll S[10];

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  rep(i,N)cin>>S[i];

  bool ok=true;
  rep(i,N-1){
    if(S[i]>S[i+1])ok=false;
  }
  rep(i,N)if(S[i]<100||S[i]>675)ok=false;
  rep(i,N)if(S[i]%25!=0)ok=false;
  if(ok)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;

  return 0;
}

Submission Info

Submission Time
Task A - New Scheme
User yamad
Language C++ (GCC 9.2.1)
Score 100
Code Size 950 Byte
Status AC
Exec Time 8 ms
Memory 3608 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 20
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 8 ms 3560 KiB
00_sample_01.txt AC 3 ms 3604 KiB
00_sample_02.txt AC 2 ms 3580 KiB
01_random_00.txt AC 2 ms 3580 KiB
01_random_01.txt AC 2 ms 3436 KiB
01_random_02.txt AC 2 ms 3500 KiB
01_random_03.txt AC 2 ms 3608 KiB
01_random_04.txt AC 2 ms 3440 KiB
01_random_05.txt AC 3 ms 3536 KiB
01_random_06.txt AC 2 ms 3496 KiB
01_random_07.txt AC 2 ms 3608 KiB
01_random_08.txt AC 2 ms 3504 KiB
01_random_09.txt AC 3 ms 3504 KiB
01_random_10.txt AC 5 ms 3608 KiB
01_random_11.txt AC 3 ms 3576 KiB
01_random_12.txt AC 2 ms 3488 KiB
02_handmade_00.txt AC 3 ms 3436 KiB
02_handmade_01.txt AC 2 ms 3500 KiB
02_handmade_02.txt AC 2 ms 3440 KiB
02_handmade_03.txt AC 3 ms 3608 KiB