結果
問題 | No.5004 Room Assignment |
ユーザー | fgwiebfaoish |
提出日時 | 2021-12-04 11:05:10 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 273 ms / 5,000 ms |
コード長 | 3,519 bytes |
コンパイル時間 | 2,355 ms |
実行使用メモリ | 32,192 KB |
スコア | 2,774,712 |
平均クエリ数 | 7650.00 |
最終ジャッジ日時 | 2021-12-04 11:05:42 |
合計ジャッジ時間 | 31,436 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 244 ms
31,724 KB |
testcase_01 | AC | 219 ms
31,784 KB |
testcase_02 | AC | 220 ms
31,796 KB |
testcase_03 | AC | 221 ms
31,732 KB |
testcase_04 | AC | 221 ms
31,692 KB |
testcase_05 | AC | 251 ms
31,796 KB |
testcase_06 | AC | 226 ms
31,716 KB |
testcase_07 | AC | 220 ms
31,828 KB |
testcase_08 | AC | 220 ms
31,896 KB |
testcase_09 | AC | 219 ms
31,812 KB |
testcase_10 | AC | 246 ms
31,804 KB |
testcase_11 | AC | 220 ms
31,804 KB |
testcase_12 | AC | 219 ms
32,192 KB |
testcase_13 | AC | 221 ms
31,836 KB |
testcase_14 | AC | 221 ms
31,904 KB |
testcase_15 | AC | 245 ms
31,764 KB |
testcase_16 | AC | 220 ms
31,732 KB |
testcase_17 | AC | 220 ms
31,852 KB |
testcase_18 | AC | 221 ms
31,756 KB |
testcase_19 | AC | 219 ms
31,976 KB |
testcase_20 | AC | 223 ms
31,900 KB |
testcase_21 | AC | 273 ms
31,860 KB |
testcase_22 | AC | 220 ms
31,848 KB |
testcase_23 | AC | 221 ms
31,828 KB |
testcase_24 | AC | 219 ms
31,884 KB |
testcase_25 | AC | 221 ms
31,780 KB |
testcase_26 | AC | 222 ms
31,788 KB |
testcase_27 | AC | 247 ms
31,916 KB |
testcase_28 | AC | 218 ms
32,048 KB |
testcase_29 | AC | 222 ms
31,684 KB |
testcase_30 | AC | 219 ms
31,672 KB |
testcase_31 | AC | 219 ms
31,888 KB |
testcase_32 | AC | 219 ms
31,736 KB |
testcase_33 | AC | 220 ms
31,896 KB |
testcase_34 | AC | 219 ms
31,784 KB |
testcase_35 | AC | 249 ms
31,852 KB |
testcase_36 | AC | 220 ms
31,780 KB |
testcase_37 | AC | 220 ms
31,876 KB |
testcase_38 | AC | 220 ms
31,900 KB |
testcase_39 | AC | 222 ms
31,772 KB |
testcase_40 | AC | 223 ms
31,720 KB |
testcase_41 | AC | 253 ms
31,772 KB |
testcase_42 | AC | 221 ms
31,684 KB |
testcase_43 | AC | 219 ms
31,796 KB |
testcase_44 | AC | 221 ms
31,884 KB |
testcase_45 | AC | 219 ms
32,040 KB |
testcase_46 | AC | 218 ms
31,648 KB |
testcase_47 | AC | 249 ms
31,760 KB |
testcase_48 | AC | 220 ms
31,792 KB |
testcase_49 | AC | 222 ms
31,796 KB |
testcase_50 | AC | 222 ms
31,960 KB |
testcase_51 | AC | 221 ms
31,768 KB |
testcase_52 | AC | 220 ms
31,660 KB |
testcase_53 | AC | 250 ms
31,776 KB |
testcase_54 | AC | 219 ms
31,900 KB |
testcase_55 | AC | 221 ms
31,824 KB |
testcase_56 | AC | 222 ms
31,488 KB |
testcase_57 | AC | 223 ms
32,052 KB |
testcase_58 | AC | 221 ms
32,020 KB |
testcase_59 | AC | 225 ms
31,788 KB |
testcase_60 | AC | 220 ms
31,620 KB |
testcase_61 | AC | 219 ms
31,740 KB |
testcase_62 | AC | 222 ms
31,768 KB |
testcase_63 | AC | 219 ms
31,724 KB |
testcase_64 | AC | 228 ms
31,692 KB |
testcase_65 | AC | 217 ms
31,976 KB |
testcase_66 | AC | 221 ms
31,780 KB |
testcase_67 | AC | 219 ms
31,800 KB |
testcase_68 | AC | 219 ms
32,004 KB |
testcase_69 | AC | 225 ms
31,792 KB |
testcase_70 | AC | 218 ms
32,128 KB |
testcase_71 | AC | 218 ms
31,784 KB |
testcase_72 | AC | 220 ms
31,740 KB |
testcase_73 | AC | 228 ms
31,828 KB |
testcase_74 | AC | 224 ms
31,772 KB |
testcase_75 | AC | 218 ms
31,792 KB |
testcase_76 | AC | 222 ms
31,828 KB |
testcase_77 | AC | 219 ms
31,828 KB |
testcase_78 | AC | 224 ms
32,052 KB |
testcase_79 | AC | 220 ms
32,164 KB |
testcase_80 | AC | 225 ms
31,724 KB |
testcase_81 | AC | 222 ms
31,828 KB |
testcase_82 | AC | 222 ms
31,884 KB |
testcase_83 | AC | 219 ms
31,800 KB |
testcase_84 | AC | 219 ms
31,800 KB |
testcase_85 | AC | 223 ms
31,964 KB |
testcase_86 | AC | 227 ms
31,856 KB |
testcase_87 | AC | 217 ms
31,596 KB |
testcase_88 | AC | 220 ms
31,588 KB |
testcase_89 | AC | 221 ms
31,788 KB |
testcase_90 | AC | 218 ms
31,844 KB |
testcase_91 | AC | 218 ms
31,852 KB |
testcase_92 | AC | 225 ms
31,768 KB |
testcase_93 | AC | 218 ms
31,712 KB |
testcase_94 | AC | 218 ms
32,092 KB |
testcase_95 | AC | 219 ms
31,928 KB |
testcase_96 | AC | 222 ms
31,828 KB |
testcase_97 | AC | 220 ms
31,808 KB |
testcase_98 | AC | 226 ms
31,692 KB |
testcase_99 | AC | 227 ms
31,988 KB |
コンパイルメッセージ
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.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; //using nint=System.Int32; static class Program{ const long inf=long.MaxValue>>1; const int mod=(int)1e9+7;//998244353; static void Main(){ Sc sc=new Sc(); var (n,r)=sc.Tp2<int>(); int p=-1; for(int i = 0;i<n;i++) { var e=sc.Ia; StringBuilder sb=new StringBuilder(); int g=0; for(int j = 1;j<e.Length;j++) { p++; if(p%4!=0){ g++; sb.Append(p-p%4+1+" "+(p+1)+"\n"); } } Console.WriteLine(g); Console.Write(sb); } } } public class Sc{ public int I{get{return int.Parse(Console.ReadLine());}} public long L{get{return long.Parse(Console.ReadLine());}} public double D{get{return double.Parse(Console.ReadLine());}} public string S{get{return Console.ReadLine();}} public int[] Ia{get{return Array.ConvertAll(Console.ReadLine().Split(),int.Parse);}} public long[] La{get{return Array.ConvertAll(Console.ReadLine().Split(),long.Parse);}} public double[] Da{get{return Array.ConvertAll(Console.ReadLine().Split(),double.Parse);}} public string[] Sa{get{return Console.ReadLine().Split();}} public object[] Oa{get{return Console.ReadLine().Split();}} public int[] Ia2{get{return Array.ConvertAll(("0 "+Console.ReadLine()+" 0").Split(),int.Parse);}} public int[] Ia3(string a,string b){return Array.ConvertAll((a+Console.ReadLine()+b).Split(),int.Parse);} public int[] Ia3(int a){return Array.ConvertAll((Console.ReadLine()+" "+a.ToString()).Split(),int.Parse);} public long[] La2{get{return Array.ConvertAll(("0 "+Console.ReadLine()+" 0").Split(),long.Parse);}} public long[] La3(string a,string b){return Array.ConvertAll((a+Console.ReadLine()+b).Split(),long.Parse);} public long[] La3(int a){return Array.ConvertAll((Console.ReadLine()+" "+a.ToString()).Split(),long.Parse);} public double[] Da2{get{return Array.ConvertAll(("0 "+Console.ReadLine()+" 0").Split(),double.Parse);}} public double[] Da3(string a,string b){return Array.ConvertAll((a+Console.ReadLine()+b).Split(),double.Parse);} public T[] Arr<T>(int n,Func<T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f();}return a;} public T[] Arr<T>(int n,Func<int,T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(i);}return a;} public T[] Arr<T>(int n,Func<string[],T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(Console.ReadLine().Split());}return a;} public T[] Arr<T>(int n,Func<int,string[],T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(i,Console.ReadLine().Split());}return a;} public (T,T) Tp2<T>(){var s=Console.ReadLine().Split();return (Ct<T>(s[0]),Ct<T>(s[1]));} public (T,T,T) Tp3<T>(){var s=Console.ReadLine().Split();return (Ct<T>(s[0]),Ct<T>(s[1]),Ct<T>(s[2]));} public (T,T,T,T) Tp4<T>(){var s=Console.ReadLine().Split();return (Ct<T>(s[0]),Ct<T>(s[1]),Ct<T>(s[2]),Ct<T>(s[3]));} public (T,T,T,T,T) Tp5<T>(){var s=Console.ReadLine().Split();return (Ct<T>(s[0]),Ct<T>(s[1]),Ct<T>(s[2]),Ct<T>(s[3]),Ct<T>(s[4]));} public (T1,T2) Tp2<T1,T2>(){var s=Console.ReadLine().Split();return (Ct<T1>(s[0]),Ct<T2>(s[1]));} public (T1,T1,T2) Tp3<T1,T2>(){var s=Console.ReadLine().Split();return (Ct<T1>(s[0]),Ct<T1>(s[1]),Ct<T2>(s[2]));} private T Ct<T>(string s){return (T)Convert.ChangeType(s,typeof(T));} }