結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-30 04:36:03 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| + 764µs | |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 1,773 ms |
| コンパイル使用メモリ | 172,196 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-30 04:36:08 |
| 合計ジャッジ時間 | 2,729 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
int main(void){
int n; cin >> n;
int right=0, miss=0;
while(n--){
int t; string s; cin >> t >> s;
int p=12*t/1000, m=s.size();
if(p>=m) right+=m;
else{
right+=p, miss+=m-p;
}
}
cout << right << ' ' << miss << endl;
return 0;
}