13 条题解
-
2
#include <bits/stdc++.h> #include <iostream> #include <iomanip> #include <cmath> #include <math.h> #include <algorithm> #include <cstring> using namespace std; const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { float b , r = 3.0 , w , f = 1.2 , m; cin >> m; b = m / r + 50; w = m / f; if( b > w ) { cout << "Walk" << endl; } else if( b < w ) { cout << "Bike" << endl; } else { cout << "All" << endl; } return 0; } -
2
#include <queue> #include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { float s; cin >> s; float q,z; q = 50 + s / 3.0; z = s / 1.2; if (z==q) { cout <<"All"; } else if (q > z) { cout <<"Walk" ; } else if(q < z) { cout <<"Bike"; } } -
1
包AC
#include<bits/stdc++.h>/*pe*/ using namespace std; double a,a1,a2; int main(){ cin >> a; a1=a/3.0/*ng*/+50; a2=a/1.2; if(a1>a2) cout << "Walk"; else if(a1<a2) cout << "Bike"; else cout << "All"; return 0; } -
0
#include <bits/stdc++.h> #include #include #include #include <math.h> #include #include using namespace std; const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { float b , r = 3.0 , w , f = 1.2 , m; cin >> m; b = m / r + 50; w = m / f; if( b > w ) { cout << "Walk" << endl; } else if( b < w ) { cout << "Bike" << endl; } else { cout << "All" << endl; } return 0; }
-
- 1
信息
- ID
- 874
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 7
- 标签
- 递交数
- 2256
- 已通过
- 518
- 上传者