結果

問題 No.1591 Two Digits
ユーザー A0ikun_1818A0ikun_1818
提出日時 2021-07-13 14:09:54
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 885 bytes
コンパイル時間 887 ms
コンパイル使用メモリ 78,648 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-15 09:17:53
合計ジャッジ時間 1,795 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iomanip>
#include <set>
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")
int main(){
  ll n,m,i,j,k,result=0;
  string s;
  
  cin >> s;
  set<char> ss;
  n = s.size();
  
  cout << Yes(n==2) << endl;
  return 0;
}
0