結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-02-29 01:49:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 491 ms |
| コンパイル使用メモリ | 56,244 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 12:33:09 |
| 合計ジャッジ時間 | 938 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
int n,t;
string s;
int ok=0,ng=0;
cin>>n;
for(int i=0;i<n;i++){
cin>>t>>s;
int touch=t*12/1000;
if(touch<s.size()) ok+=touch,ng+=s.size()-touch;
else ok+=s.size();
}
cout<<ok<<" "<<ng<<endl;
}
kongarishisyamo