結果

問題 No.1686 Geschenkt
ユーザー takytank
提出日時 2021-09-26 02:13:48
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 1,464 bytes
コンパイル時間 13,459 ms
コンパイル使用メモリ 170,144 KB
実行使用メモリ 177,568 KB
最終ジャッジ日時 2024-07-05 15:33:52
合計ジャッジ時間 14,361 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (95 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
/home/judge/data/code/Main.cs(26,14): warning CS1998: この非同期メソッドには 'await' 演算子がないため、同期的に実行されます。'await' 演算子を使用して非ブロッキング API 呼び出しを待機するか、'await Task.Run(...)' を使用してバックグラウンドのスレッドに対して CPU 主体の処理を実行することを検討してください。 [/home/judge/data/code/main.csproj]
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics.X86;
using System.Text;

namespace AtCoder
{
	class Program
	{
		static void Main()
		{
		}

		delegate T Version2<T>(T arg); // C# 2 Generics
		void Version3() { Version2<int> f = n => n; } // C# 3 Lambda
		interface IVersion4<out T> { } // C# 4 covariance
		async void Version5() { } // C# 5 async/await
		string Version6() { return nameof(Version6); } // C# 6 nameof
		bool Version7() { return int.TryParse("3", out _); } // C# 7 discard
		(int a, int b) Version7_ValueTupe() { return (1, 2); } // C# 7 ValueTuple
		bool Version7_1() { return default; } // C# 7.1 default
		int Version7_2() { return 0x_1; } // C# 7.2 leading digit separator
		void Version7_3<T>() where T : unmanaged { } // C# 7.3 unmanaged generics
		BigInteger SystemNumerics(BigInteger a, BigInteger b) { return a + b; } // System.Numerics.BigInteger
		int Version8() { return true switch { true => 1, false => 0 }; } // C# 8 switch expression
		Span<int> Span(int[] array) { return array.AsSpan(); } // System.Span
		int Intrinsics(uint value) { return BitOperations.PopCount(value); }
		object Version9() { return new(); } // C# 9 target-typed new 
	}
}
0