結果

問題 No.35 タイパー高橋
ユーザー mell1mell1
提出日時 2018-12-20 23:41:17
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 289 bytes
コンパイル時間 457 ms
コンパイル使用メモリ 56,148 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-26 01:14:18
合計ジャッジ時間 1,064 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,348 KB
testcase_01 AC 3 ms
4,348 KB
testcase_02 AC 3 ms
4,348 KB
testcase_03 AC 4 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
int main(void){
    int n,a,b,c,su=0,m=0;
    std::string s;
    std::cin>>n;
    for(;std::cin>>a>>s;){
        b=s.size();
        c=12*a/1000;
        su+=(c-b<0?c:b);
        m+=(c-b<0?b-c:0);
    }
    std::cout<<su<<" "<<m<<"\n";
    return 0;
}
0