結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-02-29 01:49:28 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| + 750µs | |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 71,736 KB |
| 実行使用メモリ | 7,728 KB |
| 最終ジャッジ日時 | 2026-09-03 06:13:03 |
| 合計ジャッジ時間 | 1,509 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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