結果

問題 No.35 タイパー高橋
ユーザー LV3zJigVW57oPGyLV3zJigVW57oPGy
提出日時 2022-11-08 23:46:17
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 702 bytes
コンパイル時間 1,182 ms
コンパイル使用メモリ 144,888 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-29 13:17:22
合計ジャッジ時間 1,607 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h> 
using namespace std;
#include <ios>
#include <iomanip>
#include <iostream>
#include <string>
#include <algorithm>

int main(){
  int a;
  int count = 0;
  int number =0;
  cin >> a;
  double d = 1000/12;
  for(int i=0; i<a;i++){
    int fora;
    int ans;
    string forb;
    cin >> fora >> forb;
     number += forb.size();
    if(fora < d*forb.size()){
    int forc = fora/250;
    int ford = fora - forc*250;
    ans = forc*3;
      if(ford < 84){
    }
    else if((ford >= 84 )&&(ford < 167)){
      ans += 1;
    }
    else if(ford >=167){
      ans += 2;
    }
    }
    else{
      ans = forb.size();
    }
    count += ans;
  }
  cout <<count<<endl<<number-count;
}
0