結果

問題 No.35 タイパー高橋
ユーザー aaaaaaiuaaaaaaiu
提出日時 2019-07-26 11:44:42
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 432 bytes
コンパイル時間 1,919 ms
コンパイル使用メモリ 199,128 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-09-15 00:15:09
合計ジャッジ時間 2,579 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

int main() {
    int n;
    cin >> n;
    int typed = 0;
    int missed = 0;
    while (n--) {
        int t; string s;
        cin >> t >> s;
        int can = 12*t/1000;
        if (can < s.size()) {
            missed += s.size()-can;
            typed += can;
        } else typed += s.size();
    }
    cout << typed << ' ' << missed << endl;
    return 0;
}
0