回答編集履歴

1

scanfの書式設定の誤りの修正

2019/12/07 02:59

投稿

majiponi
majiponi

スコア1720

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  int x, y;
8
8
 
9
- while(scanf(" %d %d", &x, &y)==2){
9
+ while(scanf("%d %d", &x, &y)==2){
10
10
 
11
11
  printf("%d\n", (x+y)*(y-x+1)/2);
12
12