結果
問題 | No.536 人工知能 |
ユーザー |
|
提出日時 | 2017-10-20 05:15:32 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 670 ms |
コンパイル使用メモリ | 95,304 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-06-12 22:03:22 |
合計ジャッジ時間 | 1,229 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import std.stdio, std.array, std.string;import std.algorithm;//endsWithvoid main(){auto s = readln.chomp;if (s.endsWith("ai")) {writeln(s[0 .. $-2]~"AI");}else{writeln(s ~ "-AI");}}