結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-11-08 23:46:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 702 bytes |
| コンパイル時間 | 1,570 ms |
| コンパイル使用メモリ | 160,308 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 07:37:25 |
| 合計ジャッジ時間 | 1,799 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
ソースコード
#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;
}
LV3zJigVW57oPGy