結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
side
|
| 提出日時 | 2019-10-19 00:26:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 1,919 ms |
| コンパイル使用メモリ | 166,932 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-25 20:15:31 |
| 合計ジャッジ時間 | 2,865 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 10 WA * 8 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
getline(cin,s);
int i=0;
for(auto c:s){
if(i&&c!=' '){
puts("No");
return 0;
}
else if(!i&&c==' '){
puts("No");
return 0;
}
}
puts("Yes");
return 0;
}
side