結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-10 22:36:32 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 662 bytes |
| コンパイル時間 | 3,088 ms |
| コンパイル使用メモリ | 110,104 KB |
| 実行使用メモリ | 25,656 KB |
| 最終ジャッジ日時 | 2024-06-23 18:33:27 |
| 合計ジャッジ時間 | 2,465 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
namespace _0908
{
class Program
{
static void Main(string[] args)
{
var s = Console.ReadLine();
var f = true;
for(var i = 1; i <= s.Length; i++){
if(i % 2 == 0){
if(!(s[i-1] == ' ')){
f = false;
break;
}
}else{
if(!(s[i-1] != ' ' && char.IsLower(s[i-1]))){
f = false;
break;
}
}
}
Console.WriteLine(f ? "Yes" : "No");
}
}
}