回答編集履歴
1
scanfの書式設定の誤りの修正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
int x, y;
|
8
8
|
|
9
|
-
while(scanf("
|
9
|
+
while(scanf("%d %d", &x, &y)==2){
|
10
10
|
|
11
11
|
printf("%d\n", (x+y)*(y-x+1)/2);
|
12
12
|
|