結果

問題 No.35 タイパー高橋
ユーザー lice6613lice6613
提出日時 2019-04-29 21:36:02
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 1,747 ms
コンパイル使用メモリ 168,092 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-26 19:20:25
合計ジャッジ時間 1,957 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,380 KB
testcase_01 AC 3 ms
4,380 KB
testcase_02 AC 3 ms
4,384 KB
testcase_03 AC 3 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<int> T(N);
  vector<string> S(N);
  for (int i = 0; i < N; i++)
    cin >> T[i] >> S[i];
  int type = 0, all = 0;
  for (int i = 0; i < N; i++) {
    int Ssize = S[i].size();
    type += min(12 * T[i] / 1000, Ssize), all += Ssize;
  }
  cout << type << ' ' << all - type << endl;
}
0