結果
| 問題 |
No.1217 せしすせそ
|
| ユーザー |
y61mpnl
|
| 提出日時 | 2021-02-20 20:16:26 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 215 bytes |
| コンパイル時間 | 1,924 ms |
| コンパイル使用メモリ | 192,408 KB |
| 最終ジャッジ日時 | 2025-01-19 02:46:50 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%s", t);
| ~~~~~^~~~~~~~~
ソースコード
#include<bits/stdc++.h>
int main(){
char s[] = "abcdefghijklmnopqrstuvwxyz", t[27];
scanf("%s", t);
for(int i=0; i<26; i++){
if(s[i]!=t[i]){
printf("%cto%c\n", s[i], t[i]);
return 0;
}
}
return 0;
}
y61mpnl