Browse Source

添加 'C.cpp'

爱玲姐姐 5 years ago
parent
commit
f101fba510
1 changed files with 12 additions and 0 deletions
  1. 12 0
      C.cpp

+ 12 - 0
C.cpp

@@ -0,0 +1,12 @@
+#include<bits/stdc++.h>
+using namespace std;
+int main(){
+    int a,b;
+    scanf("%d%d",&a,&b);
+    int x,y;
+    x = (b - 2*a)/2;
+    y = a - x;
+    printf("%d %d\n",x,y);
+      
+    return 0;
+}