結果

問題 No.35 タイパー高橋
ユーザー funakoshi
提出日時 2019-08-08 10:27:15
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 487 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 29,184 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 18:55:59
合計ジャッジ時間 466 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    int num,time,typed=0,untyped=0,typed_ingame=0;
    char str[150]="";
    scanf("%d",&num);
    for(int i=0;i<num;i++)
    {
        scanf("%d %s",&time,str);
        typed_ingame=(12*time)/1000;
        if(typed_ingame>=strlen(str))
        {
            typed_ingame=strlen(str);
        }
        typed+=typed_ingame;
        untyped+=strlen(str)-typed_ingame;
    }
    printf("%d %d",typed,untyped);
}
0