結果

問題 No.35 タイパー高橋
ユーザー goodbatongoodbaton
提出日時 2015-07-30 22:49:39
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 654 bytes
コンパイル時間 505 ms
コンパイル使用メモリ 71,360 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-24 22:21:42
合計ジャッジ時間 985 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <cstring>

typedef long long ll;
using namespace std;

#define mod 1000003
#define INF 10000000
#define LLINF 2000000000000000000LL

#define SIZE 10000

int main(){
    int n,t,alll=0,miss=0;
    string s;
    
    scanf("%d",&n);
    
    for(int i=0;i<n;i++){
        cin >> t >> s;
        
        alll+=(int)s.size();
        miss+=max(0,(int)s.size()-(12*t/1000));
        
    }
    
    printf("%d %d\n",alll-miss,miss);
    
    return 0;
}
0