竞赛
考级
#include <iostream> #include <cassert> using namespace std; int main() { int head, leg; }
杀死鬼子,手撕鬼子,嘎了鬼子🤣
#include <bits/stdc++.h> using namespace std; int main() { int haid,leg; cin>>haid>>leg; int assume=haid*4;; int true_=assume-leg; true_=true_/(4-2); cout<<true_<<endl<<haid-true_; return 0; }
183****6507
答案: #include <iostream> using namespace std; int main() { int x,y; cin >> x >> y; for(int i = 1; i <= y/2; i++) { for(int j = 1; j <= y/4; j++) { if(i + j == x && i * 2 + j * 4 == y) { cout << i << endl << j; } } } return 0; }
阿基米哲V(^-^)V
programmerGYM
#include<iostream> using namespace std; int main(){ int x; int y; int b; cin>>x; cin>>y; for(int a=0;a<x;a++){ if(a*2+(x-a)*4==y){ cout<<a<<endl<<x-a; } } }
啊啊啊玩MC的ZHN钟昊能
6.
#include <bits/stdc++.h> using namespace std; int main(){ int t,j,x,y; cin>>t>>j; x=t*4; y=(x-j)/2; x=t-y; cout <<y<<endl<<x<<endl; }
666
#include<iostream> using namespace std; int main(){ int x,y; cin>>x>>y; cout<<(y - ((y - x * 2) / 2) *4) / 2<<endl; cout<<(y - x *2) / 2<<endl; return 0; }
韩骏恒
庞文昊
ssssssssssssssss
共30条