Submission #58428243


Source Code Expand

//yukicoder@cpp17

#include <iostream>
#include <iomanip>

#include <algorithm>

#include <cmath>
#include <cctype>
#include <climits>
#include <cassert>

#include <string>
#include <vector>
#include <set>
#include <stack>
#include <queue>
#include <map>

#include <random>

#include <bitset>

#include <complex>

#include <utility>

#include <numeric>

#include <functional>


using namespace std;
using ll = long long;
using P = pair<ll,ll>;


const ll MOD = 998244353;
const ll MODx = 1000000007;
const int INF = (1<<30)-1;
const ll LINF = (1LL<<62LL)-1;
const double EPS = (1e-10);


P ar4[4] = {{0,1},{0,-1},{1,0},{-1,0}};
P ar8[8] = {{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}};


template <typename T> vector<T> make_vector(size_t a, T b) { return vector<T>(a, b); }
template <typename... Ts> auto make_vector(size_t a, Ts... ts) { return vector<decltype(make_vector(ts...))>(a, make_vector(ts...)); }
 
/*
確認ポイント
cout << fixed << setprecision(n) << 小数計算//n桁の小数表記になる

計算量は変わらないが楽できるシリーズ
min(max)_element(iter,iter)で一番小さい(大きい)値のポインタが帰ってくる
count(iter,iter,int)でintがiterからiterの間にいくつあったかを取得できる
*/

/* comment outed because can cause bugs
__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}
*/
int main(){
  string s;cin>>s;
  if(s[s.size()-3] == 's' && s[s.size()-2] == 'a' && s[s.size()-1] == 'n')cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Submission Info

Submission Time
Task A - Takahashi san 2
User CleyL
Language C++ 20 (gcc 12.2)
Score 100
Code Size 1650 Byte
Status AC
Exec Time 2 ms
Memory 3644 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 19
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 3488 KiB
example_01.txt AC 1 ms 3432 KiB
hand_00.txt AC 1 ms 3644 KiB
hand_01.txt AC 1 ms 3440 KiB
hand_02.txt AC 1 ms 3644 KiB
hand_03.txt AC 1 ms 3484 KiB
hand_04.txt AC 1 ms 3424 KiB
hand_05.txt AC 1 ms 3488 KiB
hand_06.txt AC 1 ms 3408 KiB
hand_07.txt AC 1 ms 3528 KiB
hand_08.txt AC 1 ms 3360 KiB
hand_09.txt AC 1 ms 3520 KiB
hand_10.txt AC 1 ms 3456 KiB
random_00.txt AC 1 ms 3640 KiB
random_01.txt AC 1 ms 3464 KiB
random_02.txt AC 2 ms 3480 KiB
random_03.txt AC 1 ms 3488 KiB
random_04.txt AC 1 ms 3492 KiB
random_05.txt AC 1 ms 3452 KiB