السابق التالي
0 / 23
الوحدة النمطية DEMO-32-108DEMO-C-32

Valid Email

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

Write a program that performs a simple validation check on an email string: it must contain exactly one '@' and at least one '.' after the '@'.

قيود

Max string length: 100

تنسيق الإدخال

Input:

String S

تنسيق الإخراج

Output:

VALID/INVALID

حالات اختبار نموذجية

Submit runs every public testcase in this browser. Results and code never leave this device.

العينة رقم 1
عينة ظاهرة
integer11@compile.org
VALID
The string integer11@compile.org is a VALID email format.
العينة رقم 2
عينة ظاهرة
index61@vanillagov
INVALID
The string index61@vanillagov is a INVALID email format.
العينة رقم 3
عينة ظاهرة
switch11@date.net
VALID
The string switch11@date.net is a VALID email format.
العينة رقم 4
عينة ظاهرة
class75@record.ai
VALID
The string class75@record.ai is a VALID email format.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
إعدادات المحرر