結果
| 問題 |
No.1217 せしすせそ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-09 20:38:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 244 bytes |
| コンパイル時間 | 503 ms |
| コンパイル使用メモリ | 64,036 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-20 07:54:51 |
| 合計ジャッジ時間 | 1,066 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:6:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
6 | char *S1="abcdefghijklmnopqrstuvwxyz";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
char *S1="abcdefghijklmnopqrstuvwxyz";
string S;
cin>>S;
for (int i=0;i<26;i++){
if (S1[i]!=S[i]){
cout<<S1[i]<<"to"<<S[i]<<endl;
return 0;
}
}
return 0;
}