How to take input of an array in 1 line in C++? - general - CodeChef Discuss

PHOTO EMBED

Mon Sep 26 2022 15:58:12 GMT+0000 (Coordinated Universal Time)

Saved by @Adam_Al_Rahman #c++ #input

while( scanf( "%d", &tmp) == 1 )
content_copyCOPY

https://discuss.codechef.com/t/how-to-take-input-of-an-array-in-1-line-in-c/2810