結果

問題 No.35 タイパー高橋
ユーザー GOTKAKO
提出日時 2025-05-22 18:52:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 2,194 ms
コンパイル使用メモリ 194,020 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-05-22 18:52:48
合計ジャッジ時間 2,843 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int N; cin >> N;
    int ok = 0,ng = 0;
    while(N--){
        int T; string s; cin >> T >> s;
        int now = 12*T/1000,siz = s.size();
        ok += min(siz,now);
        ng += max(0,siz-now);
    }
    cout << ok << " " << ng << endl;
}
0