結果
問題 | No.1656 Recuperation |
ユーザー | monpe |
提出日時 | 2021-09-26 20:44:07 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 58 ms / 2,000 ms |
コード長 | 503 bytes |
コンパイル時間 | 1,004 ms |
コンパイル使用メモリ | 61,244 KB |
実行使用メモリ | 20,820 KB |
最終ジャッジ日時 | 2023-09-19 04:24:20 |
合計ジャッジ時間 | 1,834 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
20,616 KB |
testcase_01 | AC | 57 ms
20,820 KB |
testcase_02 | AC | 57 ms
20,696 KB |
testcase_03 | AC | 58 ms
18,764 KB |
ソースコード
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); var life = new int[N, 2]; for(int i = 0; i < N; i++) { var line = Console.ReadLine().Split(' '); for(int j = 0; j < 2; j++) { life[i, j] = int.Parse(line[j]); } int x = life[i, 1]; int down = life[i, 0] * life[i, 1]; Console.WriteLine(x + down); } } }