結果
問題 | No.1217 せしすせそ |
ユーザー |
|
提出日時 | 2020-09-04 23:10:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 267 bytes |
コンパイル時間 | 157 ms |
コンパイル使用メモリ | 31,360 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-26 20:58:36 |
合計ジャッジ時間 | 754 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include<cstdio> char s[30]; int main(){ scanf("%s",s); int x = -1, y = 1; for(int i = 0; i < 26; i++){ int u = s[i]-'a'; if(u!=i){ x = i; y = u; } } printf("%cto%c\n",x+'a',y+'a'); return 0; }