Submission #71468790


Source Code Expand

main(){long long int ret;__builtin_scanf("%lld",&ret);__builtin_printf("%lld", ret * (ret + 1) / 2);}

Submission Info

Submission Time
Task A - Triangular Number
User a_legend_cat
Language C++23 (GCC 15.2.0)
Score 100
Code Size 101 Byte
Status AC
Exec Time 1 ms
Memory 1676 KiB

Compile Error

./Main.cpp:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){long long int ret;__builtin_scanf("%lld",&ret);__builtin_printf("%lld", ret * (ret + 1) / 2);}
      | ^~~~

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 11
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 1612 KiB
example_01.txt AC 1 ms 1676 KiB
example_02.txt AC 0 ms 1620 KiB
hand_00.txt AC 0 ms 1564 KiB
hand_01.txt AC 0 ms 1560 KiB
hand_02.txt AC 0 ms 1572 KiB
random_00.txt AC 0 ms 1676 KiB
random_01.txt AC 0 ms 1568 KiB
random_02.txt AC 1 ms 1584 KiB
random_03.txt AC 0 ms 1612 KiB
random_04.txt AC 0 ms 1560 KiB