結果

問題 No.35 タイパー高橋
ユーザー kotatsugame
提出日時 2016-10-30 07:36:25
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 1,583 ms
コンパイル使用メモリ 166,888 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 23:31:21
合計ジャッジ時間 2,216 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:19: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | int n,t,c,d,a,b,i;main(){std::string s;std::cin>>n;i=n;for(;i--;)std::cin>>t>>s,b=3*t/250,c+=b=(a=s.size())<b?a:b,d+=a-b;printf("%d %d\n",c,d);}
      |                   ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
int n,t,c,d,a,b,i;main(){std::string s;std::cin>>n;i=n;for(;i--;)std::cin>>t>>s,b=3*t/250,c+=b=(a=s.size())<b?a:b,d+=a-b;printf("%d %d\n",c,d);}
0