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