9 条题解
-
0
#include<bits/stdc++.h> #include #include #include<string.h> #include<stdio.h> #include #include #include<math.h> #include #include #include #include #include using namespace std; #define LL long long using namespace std; const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int n; int main() { cin >> n; printf( "%d\n%d\n%d\n%d" , 1 , 1 , 1 , n-3 ); return 0; }
-
-1
#include <iostream> #include <stack> #include <cmath> #include <vector> #include <string.h> #include <queue> #include <stdio.h> #include <iomanip> #include <cstdio> #include <algorithm> #define int long long using namespace std; const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; signed main() { int n; cin >> n; cout << "1" << endl << "1" << endl << "1" << endl << "1" << endl << n - 4 << endl; return 0; }
没想到吧 -
-1
#include<bits/stdc++.h>
#include
#include <math.h>
#include
#include <stdio.h>
#include
#include
#include
#include <string.h>
#include
using namespace std;
#define LL long long
const int N = 1e5 + 10;
const int INF = 0x3f3f3f3f;
using namespace std;
int main()
{
LL n;
cin >>n;
cout << 1 << endl;
cout << 3 << endl;
cout << 5 << endl;
cout << n - 9 << endl; }
-
-3
#include #include #include #include #include // #include using namespace std; #define long long LL const int N = 1e6+6; const int INF = 0x3f3f3f3f; const int KFC=j8jl; int x1,y1,x2,y2; int ans(int x){ if (x > 0) return x; else return 0 - x; } int manhaton(int a1,int b1,int a2,int b2){ return ans(a1 - a2) + ans(b1 - b2); } int main(){ cin >> x1 >> y1 >> x2 >> y2; cout << manhaton(x1,y1,x2,y2); return 0; }
-
-7
//用户开启了“完全隐私保护”数据丢失
//
//Oops!
//您在该域中无相应权限 (62fe0a5fda6816364e40ace0)。
//
//技术信息:
//
//类型:
//
//参数:
//
//Oops!
//您还没有参加本次比赛。
//
//技术信息:
//
//类型:
//
//参数:
//
/******************************************************
注释 :
*******************************************************/
#include<bits/stdc++.h>
#include
#include <math.h>
#include
#include <stdio.h>
#include
#include
#include
#include <string.h>
#include
using namespace std;
#define LL long long
const int N = 1e5 + 10;
const int INF = 0x3f3f3f3f;
using namespace std;
int main()
{
LL n; cin >>n; cout << 1 << endl; cout << 3 << endl; cout << 5 << endl; cout << n - 9 << endl;
}
- 1
信息
- ID
- 816
- 时间
- 1000ms
- 内存
- 512MiB
- 难度
- 3
- 标签
- 递交数
- 405
- 已通过
- 206
- 上传者