結果

問題 No.2118 遺伝的有限集合の数え上げ
ユーザー 👑 p-adic
提出日時 2022-09-25 10:31:19
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 1,235 bytes
コンパイル時間 2,272 ms
コンパイル使用メモリ 194,388 KB
最終ジャッジ日時 2025-02-07 14:47:59
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

// ジャッジコードチェック
#include<bits/stdc++.h>
using namespace std;

#define CIN( LL , A ) LL A; cin >> A 
#define QUIT return 0 
#define RETURN( ANSWER ) cout << ( ANSWER ) << "\n"; QUIT 

int main()
{
  CIN( int , N );
  N %= 22;
  if( N == 0 ){
    RETURN( "" );
  } else if( N == 1 ){
    RETURN( "{{" );
  } else if( N == 2 ){
    RETURN( "}}" );
  } else if( N == 3 ){
    RETURN( ",," );
  } else if( N == 4 ){
    RETURN( "{,}" );
  } else if( N == 5 ){
    RETURN( "{,,}" );
  } else if( N == 6 ){
    RETURN( "{{{}" );
  } else if( N == 7 ){
    RETURN( "{{},}" );
  } else if( N == 8 ){
    RETURN( "{,{}}" );
  } else if( N == 9 ){
    RETURN( "{,{,}}" );
  } else if( N == 10 ){
    RETURN( "{{},,}" );
  } else if( N == 11 ){
    RETURN( "{,{},}" );
  } else if( N == 12 ){
    RETURN( "{,,{}}" );
  } else if( N == 13 ){
    RETURN( "{}{}" );
  } else if( N == 14 ){
    RETURN( "{},{}" );
  } else if( N == 15 ){
    RETURN( "{{{,,}}}" );
  } else if( N == 16 ){
    RETURN( "{{}{}}" );
  } else if( N == 17 ){
    RETURN( "{{{}{}}}" );
  } else if( N == 18 ){
    RETURN( "{[},{]}" );
  } else if( N == 19 ){
    RETURN( "{{}.{}}" );
  } else if( N == 20 ){
    RETURN( "{ }" );
  }
  RETURN( "YES" );
}
0