結果
問題 | No.35 タイパー高橋 |
ユーザー |
![]() |
提出日時 | 2015-09-06 23:47:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 57,560 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 04:45:49 |
合計ジャッジ時間 | 1,081 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#include<iostream> #include<vector> #include<string> int main() { int n, success = 0, failed = 0; std::cin >> n; for (int i = 0; i < n; i++) { int millis; std::string str; std::cin >> millis >> str; int type = (12 * millis / 1000 > str.length() ? str.length() : 12 * millis / 1000); success += type; failed += str.length() - type; } std::cout << success << " " << failed << std::endl; return 0; }