結果
| 問題 |
No.9001 標準入出力の練習問題(テスト用)
|
| ユーザー |
くれちー
|
| 提出日時 | 2017-05-14 01:53:22 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 1,000 ms |
| コード長 | 686 bytes |
| コンパイル時間 | 3,317 ms |
| コンパイル使用メモリ | 103,936 KB |
| 実行使用メモリ | 18,048 KB |
| 最終ジャッジ日時 | 2024-09-15 12:21:00 |
| 合計ジャッジ時間 | 3,221 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Extensions;
static class Extensions
{
public static void GetNums<T1, T2>(out T1 dest1, out T2 dest2)
{
var str = Console.ReadLine().Split();
dest1 = (T1)typeof(T1).GetMethod("Parse", new Type[] { typeof(string) }).Invoke(null, new object[] { str[0] });
dest2 = (T2)typeof(T2).GetMethod("Parse", new Type[] { typeof(string) }).Invoke(null, new object[] { str[1] });
}
}
class Program
{
static void Main()
{
int a, b;
GetNums(out a, out b);
Console.Write((a + b) + " ");
Console.Write(Console.ReadLine());
}
}
くれちー