結果

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

ソースコード

diff #

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