Submission #1799745
Source Code Expand
#include<cstdio> #include<cstdlib> #include<cmath> #include<iostream> #include<string> #include<stack> #include<queue> #include<vector> #include<map> #include<set> #include<algorithm> #include<numeric> #define rep(n) for(int i=0;i<n;i++) #define repp(j, n) for(int j=0;j<n;j++) #define reppp(i, m, n) for(int i=m;i<=n;i++) #define all(c) c.begin(), c.end() #define rall(c) c.rbegin(), c.rend() #define MOD 1000000007 #define MAX 100000 #define INF 1410065408 #define EPS 1e-9 #define DEBUG 0 #define ll long long #define Pll pair<ll, ll> #define Pii pair<int, int> using namespace std; struct edge{int from, to; ll cost;}; //int G[MAX][MAX]; signed main(){ ios::sync_with_stdio(0); cin.tie(0); int n, a; cin >> n; if(n == 1){ cout << 1; return 0; } a = (n+2)/2; cout << a << endl << n-a << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Exactly N points |
User | Noimin |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 907 Byte |
Status | RE |
Exec Time | 17 ms |
Memory | 2940 KB |
Judge Result
Set Name | sample | dataset1 | dataset2 | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | 0 / 100 | ||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
sample | sample-01.txt, sample-02.txt, sample-03.txt |
dataset1 | sample-01.txt, sample-02.txt, sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt |
dataset2 | sample-01.txt, sample-02.txt, sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 02-01.txt, 02-02.txt, 02-03.txt, 02-04.txt, 02-05.txt, 02-06.txt, 02-07.txt, 02-08.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | RE | 17 ms | 2940 KB |
01-02.txt | RE | 17 ms | 2940 KB |
01-03.txt | RE | 17 ms | 2940 KB |
01-04.txt | RE | 17 ms | 2940 KB |
01-05.txt | RE | 17 ms | 2940 KB |
01-06.txt | RE | 17 ms | 2940 KB |
01-07.txt | RE | 17 ms | 2940 KB |
01-08.txt | RE | 17 ms | 2940 KB |
01-09.txt | RE | 16 ms | 2940 KB |
01-10.txt | RE | 17 ms | 2940 KB |
02-01.txt | RE | 17 ms | 2940 KB |
02-02.txt | RE | 17 ms | 2940 KB |
02-03.txt | RE | 17 ms | 2940 KB |
02-04.txt | RE | 17 ms | 2940 KB |
02-05.txt | RE | 17 ms | 2940 KB |
02-06.txt | RE | 17 ms | 2940 KB |
02-07.txt | RE | 17 ms | 2940 KB |
02-08.txt | RE | 17 ms | 2940 KB |
sample-01.txt | RE | 17 ms | 2940 KB |
sample-02.txt | RE | 16 ms | 2940 KB |
sample-03.txt | RE | 17 ms | 2940 KB |