Points:
100
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Cho đoạn code sau
int s=0;
for (int i=1;i<=n;i++) if (i%2) s--; else s+=2;
Nhập \(n\) in ra giá trị \(s\) sau đoạn code trên.
Example
Test 1
Input
1
Output
-1
Comments