提出 #4097745


ソースコード 拡げる

#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <utility>

using namespace std;

template<typename T> 
void show(T a){
  for(auto i : a){ cout << i << " "; }
  cout << endl;
}


int main(int argc, char *argv[]){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int a, b, n;
  cin >> n >> a >> b;
  cout << min(a, b) << endl;
  int res = a+b-n;
  cout << (res > 0 ? res : 0) << endl;
}

提出情報

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

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 10
セット名 テストケース
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10
ケース名 結果 実行時間 メモリ
a01 AC 1 ms 256 KiB
a02 AC 3 ms 256 KiB
a03 AC 1 ms 256 KiB
b04 AC 1 ms 256 KiB
b05 AC 1 ms 256 KiB
b06 AC 1 ms 256 KiB
b07 AC 1 ms 256 KiB
b08 AC 1 ms 256 KiB
b09 AC 1 ms 256 KiB
b10 AC 1 ms 256 KiB