結果
問題 | No.264 じゃんけん |
ユーザー |
|
提出日時 | 2018-04-20 16:50:24 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 25 ms / 5,000 ms |
コード長 | 421 bytes |
コンパイル時間 | 1,488 ms |
コンパイル使用メモリ | 111,244 KB |
実行使用メモリ | 25,996 KB |
最終ジャッジ日時 | 2024-06-27 05:07:40 |
合計ジャッジ時間 | 2,251 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class Program4{ static void Main(string[]args){ string N=Console.ReadLine(); string []t=N.Split(' '); int n=int.Parse(t[0]); int k=int.Parse(t[1]); if((n-k+3)%3==1){ Console.WriteLine("Lost"); }else if((n-k+3)%3==2){ Console.WriteLine("Won"); }else{ Console.WriteLine("Drew"); } } }