結果

問題 No.1656 Recuperation
ユーザー obemaru4012
提出日時 2022-02-12 21:41:25
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 3,777 ms
コンパイル使用メモリ 65,664 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-29 00:44:51
合計ジャッジ時間 4,204 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils
import strutils

var T: int = stdin.readLine().parseInt()
var cases: seq[seq[int]]

for t in countup(1, T):
    var tmp = map(stdin.readLine().split(" "), proc(x: string): int = x.parseInt())
    cases.add(tmp)

for c in cases:
    echo(c[1] + (c[0] * c[1]))
0