Submission #2997388


Source Code Expand

#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cassert>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <fstream>

using namespace std;
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(s) (s).begin(), (s).end()
#define so(V) sort(ALL(V))
#define rev(V) reverse(ALL(V))
#define uni(v) v.erase( unique(ALL(v)) , v.end());
#define PAU system("pause")

typedef long long unsigned int llu;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector <int> > vvi;
const int EPS = 1e-9;
const int MOD = 1e9 + 7;
const int INF = (1 << 30);
const double PI = acos(-1);

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int N;
	cin >> N;
	vi A(N);
	int ans = 0;
	REP(i, N) {
		int score;
		cin >> score;
		ans += max(0, 80 - score);
	}
	cout << ans << endl;
	PAU;
	return 0;
}

Submission Info

Submission Time
Task A - 全優
User Daylight
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1154 Byte
Status AC
Exec Time 2 ms
Memory 504 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:53:5: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
  PAU;
     ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 22
Set Name Test Cases
Sample subtask0_sample_01.txt, subtask0_sample_02.txt
All subtask0_sample_01.txt, subtask0_sample_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt AC 2 ms 504 KB
subtask0_sample_02.txt AC 2 ms 504 KB
subtask1_01.txt AC 2 ms 504 KB
subtask1_02.txt AC 2 ms 504 KB
subtask1_03.txt AC 2 ms 504 KB
subtask1_04.txt AC 2 ms 504 KB
subtask1_05.txt AC 2 ms 504 KB
subtask1_06.txt AC 2 ms 504 KB
subtask1_07.txt AC 2 ms 504 KB
subtask1_08.txt AC 2 ms 504 KB
subtask1_09.txt AC 2 ms 504 KB
subtask1_10.txt AC 2 ms 504 KB
subtask1_11.txt AC 2 ms 504 KB
subtask1_12.txt AC 2 ms 504 KB
subtask1_13.txt AC 2 ms 504 KB
subtask1_14.txt AC 2 ms 504 KB
subtask1_15.txt AC 2 ms 504 KB
subtask1_16.txt AC 2 ms 504 KB
subtask1_17.txt AC 2 ms 504 KB
subtask1_18.txt AC 2 ms 504 KB
subtask1_19.txt AC 2 ms 504 KB
subtask1_20.txt AC 2 ms 504 KB