提出 #1716871


ソースコード 拡げる

#include <math.h>
#include <algorithm>
#include <functional>
#include <iostream>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>

using namespace std;

using ll = long long;

int R, G;

int main() {
    cin >> R;
    cin >> G;

    cout << 2 * G - R << endl;

    return 0;
}

提出情報

提出日時
問題 A - Rating Goal
ユーザ Aogiri_m2d
言語 C++14 (GCC 5.4.1)
得点 100
コード長 363 Byte
結果 AC
実行時間 1 ms
メモリ 256 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 8
セット名 テストケース
Sample s1.txt, s2.txt
All in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, s1.txt, s2.txt
ケース名 結果 実行時間 メモリ
in1.txt AC 1 ms 256 KiB
in2.txt AC 1 ms 256 KiB
in3.txt AC 1 ms 256 KiB
in4.txt AC 1 ms 256 KiB
in5.txt AC 1 ms 256 KiB
in6.txt AC 1 ms 256 KiB
s1.txt AC 1 ms 256 KiB
s2.txt AC 1 ms 256 KiB