summaryrefslogtreecommitdiffstats
path: root/RNA.rs
diff options
context:
space:
mode:
Diffstat (limited to 'RNA.rs')
-rw-r--r--RNA.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/RNA.rs b/RNA.rs
new file mode 100644
index 0000000..30091fe
--- /dev/null
+++ b/RNA.rs
@@ -0,0 +1,12 @@
+use io::{stdin,stdout,ReaderUtil,WriterUtil};
+
+fn main() {
+ let stdout = stdout();
+ for stdin().each_char() |ch| {
+ match ch {
+ 'T' => { stdout.write_char('U') }
+ '\n' => { stdout.write_char(ch); return }
+ _ => { stdout.write_char(ch) }
+ }
+ }
+}