C
c
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
int main()
{
char text[500] = {0};
scanf("https://www.youtube.com/watch?v=%s", text);
if(text[0] == 0)
scanf("youtu.be/%s", text);
printf("%s", text);
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run