結果
問題 | No.35 タイパー高橋 |
ユーザー | mkawa2 |
提出日時 | 2019-12-16 22:59:16 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 22 ms / 5,000 ms |
コード長 | 579 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 10,900 KB |
実行使用メモリ | 8,612 KB |
最終ジャッジ日時 | 2023-09-15 18:43:53 |
合計ジャッジ時間 | 745 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 22 ms
8,612 KB |
testcase_01 | AC | 22 ms
8,528 KB |
testcase_02 | AC | 20 ms
8,508 KB |
testcase_03 | AC | 20 ms
8,500 KB |
ソースコード
import sys from collections import Counter sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def MI(): return map(int, sys.stdin.readline().split()) def MI1(): return map(int1, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def main(): n=int(input()) suc=0 total=0 for _ in range(n): t,s=input().split() suc+=min(int(t)*12//1000,len(s)) total+=len(s) print(suc,total-suc) main()