#D. C++-初识C++-定义整数n并进行n++和++n及n在不同的cout进行打印,定义短整数s=32767直接s+1并进行cout

    Type: Default 1000ms 256MiB

C++-初识C++-定义整数n并进行n++和++n及n在不同的cout进行打印,定义短整数s=32767直接s+1并进行cout

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

image

Format

Input

Output

Samples


Windows:
1 3 3 4 4 5
4 5 5 5 1 5
32768
-32768

Linux:
1 3 3 4 4 5 
1 3 3 4 4 5 
32768
-32768

不同的操作系统和编译器会存在不同的结果,不建议“cout<<n++<<" "<<++n<<" "<<n<<" "<<++n<<" "<<n++<<" "<<n<<" "<<endl;”类似的代码。

Limitation

1s, 1024KiB for each test case.

创建一个新的比赛Test

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2024-7-21 0:00
End at
2024-8-2 12:00
Duration
300 hour(s)
Host
Partic.
7