結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-02-06 11:19:50 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 2,000 ms |
| コード長 | 414 bytes |
| コンパイル時間 | 1,897 ms |
| コンパイル使用メモリ | 111,304 KB |
| 実行使用メモリ | 25,300 KB |
| 最終ジャッジ日時 | 2024-09-25 06:15:02 |
| 合計ジャッジ時間 | 2,101 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
using System.Collections.Generic;
static class NagataKanaIsAGenius {
public static void Main() {
int i=0;
foreach(char c in Console.ReadLine()){
if(i==0&&(c<'a'||'z'<c)||i==1&&c!=' '){
Console.WriteLine("No");
Environment.Exit(0);
}
i^=1;
}
Console.WriteLine("Yes");
}
}
ngtkana