結果

問題 No.35 タイパー高橋
ユーザー chacoder1chacoder1
提出日時 2020-11-22 12:26:14
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 2,324 ms
コンパイル使用メモリ 198,672 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-30 22:44:48
合計ジャッジ時間 2,676 ms
ジャッジサーバーID
(参考情報)
judge13 / 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,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
  int n;
  cin>>n;
  int correct_type=0;
  int incorrect_type=0;
  for(int i=0;i<n;i++){
    int t;
    string s;
    cin>>t>>s;
    int len=s.length();
    incorrect_type+=len-min(len,12*t/1000);
    correct_type+=min(len,12*t/1000);
  }
  cout<<correct_type<<" "<<incorrect_type<<endl;
  return 0;
}

0