結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2020-11-22 12:26:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 5,000 ms |
| コード長 | 362 bytes |
| コンパイル時間 | 2,142 ms |
| コンパイル使用メモリ | 193,184 KB |
| 最終ジャッジ日時 | 2025-01-16 04:19:31 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#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;
}
chacoder1