#include <iostream>
using namespace std;
int main(int argc, char** argv){
int a,b;
while(cin>>a>>b){
cout<<(a+b)*2<<endl;
}
}
#include
using namespace std;
int main(int argc, char** argv){
int a,b;
while(cin>>a>>b){
cout<<(a+b)*2<<endl;
}
}
比你快一點
#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b)==2) printf("%d\n",2*(a+b)); }
AC (1ms, 108KB) |
#include
using namespace std;
int main(int argc, char** argv){
int a,b;
while(cin>>a>>b){
cout<<(a+b)*2<<endl;
}
}
比你快一點
#include int main() { int a,b; while(scanf("%d%d",&a,&b)==2) printf("%d\n",2*(a+b)); }
AC (1ms, 108KB) |
你那是C
別和C++放在一起....
C++我只能到2ms,68kb....
#include
using namespace std;
int main(int argc, char** argv){
int a,b;
while(cin>>a>>b){
cout<<(a+b)*2<<endl;
}
}
比你快一點
#include int main() { int a,b; while(scanf("%d%d",&a,&b)==2) printf("%d\n",2*(a+b)); }
AC (1ms, 108KB) |
你那是C
別和C++放在一起....
C++我只能到2ms,68kb....
#include <stdio.h> using namespace std; int main(int argc,char** argv){ int A,B; while(scanf("%d%d",&A,&B)!=EOF){ printf("%d\n",(A+B)*2); } }
AC (1ms, 76KB)
C++可以1ms, 76kb 呀@@