結果
| 問題 | No.908 うしたぷにきあくん文字列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-10 22:36:32 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| + 933µs | |
| コード長 | 662 bytes |
| 記録 | |
| コンパイル時間 | 2,354 ms |
| コンパイル使用メモリ | 104,192 KB |
| 実行使用メモリ | 18,176 KB |
| 最終ジャッジ日時 | 2026-07-28 05:13:48 |
| 合計ジャッジ時間 | 3,441 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}
}
}