// 嘘解法チェック #include using namespace std; #define UNTIE ios_base::sync_with_stdio( false ); cin.tie( nullptr ) #define TYPE_OF( VAR ) remove_const::type >::type #define FOR( VAR , INITIAL , FINAL_PLUS_ONE ) for( TYPE_OF( FINAL_PLUS_ONE ) VAR = INITIAL ; VAR < FINAL_PLUS_ONE ; VAR ++ ) #define REPEAT( HOW_MANY_TIMES ) FOR( VARIABLE_FOR_REPEAT , 0 , HOW_MANY_TIMES ) #define CIN( LL , A ) LL A; cin >> A #define QUIT return 0 int main() { UNTIE; constexpr const int bound = 1000; CIN( int , H ); assert( 2 <= H && H <= bound ); CIN( int , W ); assert( 2 <= W && W <= bound ); W--; cout << "Yes\n"; REPEAT( H ){ REPEAT( W ){ cout << 0 << " "; } cout << 0 << "\n"; } QUIT; }