結果

問題 No.35 タイパー高橋
ユーザー testestesttestestest
提出日時 2015-08-05 03:58:33
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 198 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 23,632 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-25 01:13:09
合計ジャッジ時間 565 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
int main(){
int n,s=0,m=0,t,c;
char a[101];
scanf("%d",&n);
while(n--){
	scanf("%d%s",&t,a);t=t*6/500;
	c=0;while(a[++c]);
	s+=t>c?c:t;m+=c;
}
printf("%d %d\n",s,m-s);
return 0;
}
0