Submission #86622

# Submission time Handle Problem Language Result Execution time Memory
86622 2018-11-27T04:02:04 Z qwerty12345 Calvinball championship (CEOI15_teams) C++14
0 / 100
4 ms 676 KB
//       ###
//      #---##
//  ####-0----##
// ####--------#
//     #--------#
//     ##-------#
//      #-------#
//      #-------#
//     ##--------#
//     #---------# ##### 
//     #-------##-------#######           																																									Ya katala
//     #------#----------------#
//    #------##-----------------#
//    #------##------------------#
//    #-----#---------------------#
//    #-----##---------------------#
//     #------##--------------------#
//      #-------##-------------------#
//       #--------##------------------#
//        ############################ #
//             ||           ||
//             ||           ||
//             ||           ||
//             ||           ||
//          ####|        ####|




#include <bits/stdc++.h>
#include <iostream>

#define for0(i , v) for (int i = 0 ; i < v.size() ; i++)
#define for1(i , n) for (int i = 1 ; i <= n ; i++)
#define AIDS ios_base::sync_with_stdio(0)
#define pb push_back
#define pp pop_back
#define sz(a) a.size()
#define all(x) x.begin() , x.end()
#define F first
#define S second
#define mp make_pair
#define ld long double
#define ll long long
#define pii pair<int, int>
#define in insert
#define vi vector <int>
#define vvi vector <vi>
#define Case "Case " << num << ": "

const int N = 1e6 + 3;
const ll INF = 1e18 + 100;
const int inf = 1e9 + 123;
const int MOD = 1e9 + 7;
const int dx[] = {0 , 1 , 0 , -1 , 0};
const int dy[] = {0 , 0 , 1 , 0 , -1};
const char dd[] = {' ' , 'D' , 'R' , 'U' , 'L'};

using namespace std;


main () {
//  freopen("input.in", "r", stdin);
//  freopen("output.out", "w", stdout);
	AIDS;
	int n;
	cin >> n;
	for (int i = 1 ; i <= n ; i++) {
		int a;
		cin >> a;
	}
	cout << (n * (n - 1) / 2) + 1;
}

Compilation message

teams.cpp:62:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main () {
       ^
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 504 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 504 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 608 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 608 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 608 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 608 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 672 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 672 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 676 KB Output isn't correct
2 Halted 0 ms 0 KB -