結果
| 問題 |
No.2268 NGワード回避
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-04-09 16:54:11 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,064 bytes |
| コンパイル時間 | 629 ms |
| コンパイル使用メモリ | 67,836 KB |
| 最終ジャッジ日時 | 2025-02-12 04:15:32 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 47 WA * 5 |
ソースコード
// 誤解法(Nが小さい場合も乱択して一致判定せず)チェック
#include <iostream>
#include <string>
#include <stdio.h>
#include <stdint.h>
using namespace std;
#define TYPE_OF( VAR ) remove_const<remove_reference<decltype( VAR )>::type >::type
#define UNTIE ios_base::sync_with_stdio( false ); cin.tie( nullptr )
#define CEXPR( LL , BOUND , VALUE ) constexpr LL BOUND = VALUE
#define CIN( LL , A ) LL A; cin >> A
#define ASSERT( A , MIN , MAX ) assert( ( MIN ) <= A && A <= ( MAX ) )
#define CIN_ASSERT( A , MIN , MAX ) CIN( TYPE_OF( MAX ) , A ); ASSERT( A , MIN , MAX )
#define FOR( VAR , INITIAL , FINAL_PLUS_ONE ) for( TYPE_OF( FINAL_PLUS_ONE ) VAR = INITIAL ; VAR < FINAL_PLUS_ONE ; VAR ++ )
#define QUIT return 0
#define RETURN( ANSWER ) cout << ( ANSWER ) << "\n"; QUIT
#include <cassert>
#define MAIN main
int MAIN()
{
UNTIE;
const string ab[2] = { "a" , "b" };
CEXPR( int , bound_N , 100000 );
CIN_ASSERT( N , 1 , bound_N );
srand( time( NULL ) );
FOR( i , 0 , N ){
cout << ab[rand() % 2];
}
RETURN( "" );
}