結果

問題 No.35 タイパー高橋
ユーザー n_knuun_knuu
提出日時 2017-01-04 21:16:55
言語 Nim
(2.0.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 2,949 ms
コンパイル使用メモリ 68,316 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-12 09:30:12
合計ジャッジ時間 3,635 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,376 KB
testcase_01 AC 3 ms
4,376 KB
testcase_02 AC 3 ms
4,380 KB
testcase_03 AC 3 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport]

ソースコード

diff #

import strutils, sequtils

let N = stdin.readline.parseInt
var all_type, can_type = 0
for _ in 0..<N:
  let
    t = stdin.readline.split
    (T, S) = (t[0].parseInt, t[1].len)
  all_type += S
  can_type += min(S, 12 * T div 1000)
echo(can_type, ' ', all_type - can_type)
0