結果

問題 No.35 タイパー高橋
ユーザー zimphazimpha
提出日時 2017-12-13 22:42:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 177 bytes
コンパイル時間 524 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 75,664 KB
最終ジャッジ日時 2023-08-21 02:23:40
合計ジャッジ時間 1,589 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

cnt, ret = 0, 0
for i in range(int(input())):
  t, s = input().split()
  t = (int(t) * 12) // 1000
  cnt += min(len(s), t)
  if t < len(s):
    ret += len(s) - t
print(cnt, ret)
0