提出 #52835030


ソースコード 拡げる

// #pragma GCC optimize("Ofast,unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define inf (ll)1e18
#define pll pair<ll, ll>
#define vi vector<int>
#define vl vector<ll>
#define fi first
#define se second
#define lll __int128
const int N = 1e6 + 5;
ll a[10], b[10];
void solve() {
	ll sa = 0, sb = 0;
	for (ll i = 1; i <= 9; i++)
		cin >> a[i], sa += a[i];
	for (ll i = 1; i <= 8; i++)
		cin >> b[i], sb += b[i];
	cout << sa - sb + 1 << endl;
}
int main() {
	ios::sync_with_stdio(false);
  	cin.tie(0);
  	cout.tie(0);
	solve();
	return 0;
}

提出情報

提出日時
問題 A - The bottom of the ninth
ユーザ TopCloser
言語 C++ 20 (gcc 12.2)
得点 100
コード長 605 Byte
結果 AC
実行時間 1 ms
メモリ 3596 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 12
セット名 テストケース
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 1 ms 3456 KiB
example_01.txt AC 1 ms 3460 KiB
hand_00.txt AC 1 ms 3460 KiB
hand_01.txt AC 1 ms 3464 KiB
hand_02.txt AC 1 ms 3320 KiB
random_00.txt AC 1 ms 3448 KiB
random_01.txt AC 1 ms 3448 KiB
random_02.txt AC 1 ms 3392 KiB
random_03.txt AC 1 ms 3324 KiB
random_04.txt AC 1 ms 3596 KiB
random_05.txt AC 1 ms 3416 KiB
random_06.txt AC 1 ms 3448 KiB