結果
問題 |
No.35 タイパー高橋
|
ユーザー |
|
提出日時 | 2016-08-15 12:58:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 503 bytes |
コンパイル時間 | 855 ms |
コンパイル使用メモリ | 82,388 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 17:39:35 |
合計ジャッジ時間 | 1,341 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#define _USE_MATH_DEFINES #include<stdio.h> #include<string> #include<iostream> #include<cctype> #include<cstdio> #include<vector> #include<stack> #include <algorithm> #include<math.h> #include<set> #include<map> #include<iomanip> //#include<bits/stdc++.h> using namespace std; int main(){ int y=0;int t=0; int n; cin>>n; for(int i=0;i<n;i++){ int a; string b; cin>>a>>b; int g=a*12; g/=1000; y+=min(g,(int)b.size()); t+=b.size(); } cout<<y<<" "<<t-y<<endl; return 0; }