結果

問題 No.3294 UECoder
コンテスト
ユーザー Haniwa
提出日時 2025-11-04 20:30:53
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 11,718 ms
コンパイル使用メモリ 400,424 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-11-04 20:31:08
合計ジャッジ時間 13,110 ms
ジャッジサーバーID
(参考情報)
judge7 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `n`
 --> src/main.rs:5:3
  |
5 |         n: usize,
  |         ^ help: if this is intentional, prefix it with an underscore: `_n`
  |
  = note: `#[warn(unused_variables)]` on by default

ソースコード

diff #

use proconio::input;

fn main() {
	input! {
		n: usize,
		s: String,
	}

    let i = s.chars().position(|c| c == 'c').unwrap();

    println!("UEC{}", &s[i+1..]);
}
0