結果

問題 No.481 1から10
ユーザー #ラス+#ラス+
提出日時 2019-11-12 08:04:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 1,111 bytes
コンパイル時間 1,070 ms
コンパイル使用メモリ 111,232 KB
実行使用メモリ 23,984 KB
最終ジャッジ日時 2023-10-17 12:19:42
合計ジャッジ時間 1,939 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
23,984 KB
testcase_01 AC 24 ms
23,984 KB
testcase_02 AC 23 ms
23,984 KB
testcase_03 AC 23 ms
23,984 KB
testcase_04 AC 24 ms
23,984 KB
testcase_05 AC 23 ms
23,984 KB
testcase_06 AC 23 ms
23,984 KB
testcase_07 AC 23 ms
23,984 KB
testcase_08 AC 23 ms
23,984 KB
testcase_09 AC 24 ms
23,984 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.IO;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Start{
  static void Solve(){
    for(int i=1;i<10;i++){
      if(i!=Rint()){
        WriteLine(i);
        return;
      }
    }
    WriteLine(10);
  }
  static void Main(){
    readcount=0;
    read=In.ReadToEnd().Split(' ','\n');
    var sw=new StreamWriter(OpenStandardOutput()){AutoFlush=false};
    SetOut(sw);
    Solve();
    Out.Flush();
  }
  const long MOD=1000000007L;
  static void Swap<T>(ref T a,ref T b){T c=a;a=b;b=c;}
  static string Read()=>read[readcount++];
  static int Rint()=>int.Parse(read[readcount++]);
  static long Rlong()=>long.Parse(read[readcount++]);
  static double Rdouble()=>double.Parse(read[readcount++]);
  static char Rchar()=>read[readcount++][0];
  static string[] read;static int readcount;
}
class Pair<T1,T2>:IComparable<Pair<T1,T2>>where T1:IComparable<T1>where T2:IComparable<T2>{
  public T1 F;public T2 S;
  public Pair(T1 f,T2 s){F=f;S=s;}
  public int CompareTo(Pair<T1,T2> p)=>F.CompareTo(p.F)!=0?F.CompareTo(p.F):S.CompareTo(p.S);
}
0