Tensara Logo

tensara

All Problems

Vector Addition

EASY

Perform element-wise addition of two vectors:

ci=ai+bic_i = a_i + b_i

Input

  • Vectors aa and bb of length NN

Output

  • Vector cc of length NN containing the element-wise sum
Console

Sample Run Results

Hit "Run" to test your code with sample inputs

Loading...

Loading editor...

CUDA C++ environment

Desktop Required for Code Submission

For the best coding experience, please switch to a desktop device to write and submit your solution.