結果
問題 | No.35 タイパー高橋 |
ユーザー |
|
提出日時 | 2015-06-07 23:09:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 471 ms |
コンパイル使用メモリ | 61,768 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 14:40:04 |
合計ジャッジ時間 | 841 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#include <iostream> #include <algorithm> #include <cmath> using namespace std; int main(){ int N, T, correctType = 0, totalLen = 0; string str; cin >> N; while(N--){ cin >> T >> str; correctType += min((int)str.size(), (int)floor(12 * T / 1000)); totalLen += str.size(); } cout << correctType << " " << totalLen - correctType << endl; }