接下来,请你写一个程序,看看他最终会站在左面数第几个位置。
9 20 1 3 8 10 14 40 22 16 8 2
8
C:
``c
#include<stdio.h>
int main()
{
printf("**************************\n");
printf("dotcpp.com\n");
printf("**************************\n");
return 0;
}
c``
C++:
``cpp
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)printf("%d\n",a+b);
return 0;
}
cpp``
python:
``py
while True:
try:
a,b=map(int,input().strip().split())
print(a+b)
except:
break
py``