提出 #52862336
ソースコード 拡げる
#include<iostream>
#include<string>
using namespace std;
int main()
{
int a[9], b[8];
int num1=0, num2=0;
for (int i = 0; i < 9; i++) {
cin >> a[i];
num1 += a[i];
}
for (int i = 0; i < 8; i++) {
cin >> b[i];
num2 += b[i];
}
if (num1 - num2 >= 0) {
cout << num1 - num2 + 1;
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - The bottom of the ninth |
| ユーザ | mellowsky |
| 言語 | C++ 20 (gcc 12.2) |
| 得点 | 100 |
| コード長 | 324 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3656 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 | 3448 KiB |
| example_01.txt | AC | 1 ms | 3576 KiB |
| hand_00.txt | AC | 1 ms | 3384 KiB |
| hand_01.txt | AC | 1 ms | 3572 KiB |
| hand_02.txt | AC | 1 ms | 3504 KiB |
| random_00.txt | AC | 1 ms | 3448 KiB |
| random_01.txt | AC | 1 ms | 3516 KiB |
| random_02.txt | AC | 1 ms | 3516 KiB |
| random_03.txt | AC | 1 ms | 3460 KiB |
| random_04.txt | AC | 1 ms | 3436 KiB |
| random_05.txt | AC | 1 ms | 3656 KiB |
| random_06.txt | AC | 1 ms | 3460 KiB |