結果
問題 |
No.35 タイパー高橋
|
ユーザー |
|
提出日時 | 2019-07-26 11:44:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 5,000 ms |
コード長 | 432 bytes |
コンパイル時間 | 2,213 ms |
コンパイル使用メモリ | 193,948 KB |
最終ジャッジ日時 | 2025-01-07 07:33:24 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; int typed = 0; int missed = 0; while (n--) { int t; string s; cin >> t >> s; int can = 12*t/1000; if (can < s.size()) { missed += s.size()-can; typed += can; } else typed += s.size(); } cout << typed << ' ' << missed << endl; return 0; }