結果

問題 No.35 タイパー高橋
ユーザー kikage
提出日時 2020-03-08 01:10:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 323 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 55,128 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-15 15:26:31
合計ジャッジ時間 1,001 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    int N,T,suc=0,mis=0;string S;
    cin >> N;
    for(int i=0;i<N;i++){
        cin >> T >> S;
        int tipe=12*T/1000;
        if(tipe>=S.size())suc+=S.size();
        else{suc+=tipe;mis+=S.size()-tipe;}
    }
    cout << suc << " " << mis << endl;
    return 0;
}
0