結果
問題 | No.2460 #強調# |
ユーザー | InTheBloom |
提出日時 | 2023-09-08 21:24:34 |
言語 | D (dmd 2.106.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 424 bytes |
コンパイル時間 | 4,284 ms |
コンパイル使用メモリ | 160,524 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-08 21:24:39 |
合計ジャッジ時間 | 4,232 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,380 KB |
testcase_08 | AC | 2 ms
4,380 KB |
testcase_09 | AC | 2 ms
4,376 KB |
testcase_10 | AC | 1 ms
4,380 KB |
testcase_11 | AC | 1 ms
4,380 KB |
testcase_12 | AC | 1 ms
4,380 KB |
testcase_13 | AC | 1 ms
4,380 KB |
ソースコード
import std; void main () { string S = readln.chomp; DList!char Q; foreach (c; S) { Q.insertBack(c); } void rev (ref bool x) { x = x ? false : true; } bool isInc = false; while (!Q.empty) { auto head = Q.front; Q.removeFront; if (head == '#') { rev(isInc); continue; } if (isInc) write(head); } write("\n"); }