結果

問題 No.1592 Tenkei 90
ユーザー A0ikun_1818A0ikun_1818
提出日時 2021-07-13 14:11:34
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 923 bytes
コンパイル時間 679 ms
コンパイル使用メモリ 78,968 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-15 09:18:54
合計ジャッジ時間 2,337 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
#define rep(i,n) for((i)=0;(i)<(n);(i)++)
#define setpre(n) fixed << setprecision(n)
template<class T,class C> T max(T a,C b){ return std::max(a, (T)b); }
template<class T,class C> T min(T a,C b){ return std::min(a, (T)b); }
template<class T,class C> bool chmax(T &a,const C b){ if(a<(T)b){ a=(T)b;return true; } return false; }
template<class T,class C> bool chmin(T &a,const C b){ if((T)b<a){ a=(T)b;return true; } return false; }
using ll = long long;
using ld = long double;
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
#define YES(b) (b?"YES":"NO")
#define Yes(b) (b?"Yes":"No")
#define yes(b) (b?"yes":"no")
#define ALL(a) a.begin(), a.end()
int main(){
  ll n,m,i,j,k,result=0;
  string s,t="kyoprotenkei90";
  
  cin >> s;
  sort(ALL(s));
  sort(ALL(t));
  
  cout << Yes(s==t) << endl;
  return 0;
}
0