結果

問題 No.692 square1001 and Permutation 1
コンテスト
ユーザー phspls
提出日時 2020-02-03 23:42:08
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 411 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,730 ms
コンパイル使用メモリ 197,572 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-04-07 22:33:53
合計ジャッジ時間 3,195 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io::Read;

fn main() {
    let mut all_data = String::new();
    std::io::stdin().read_to_string(&mut all_data).ok();
    let all_data: Vec<&str> = all_data.trim().split('\n').map(|s| s.trim()).collect();
    let n: usize = all_data.iter().next().unwrap().split_whitespace().next().unwrap().parse().unwrap();
    if n > 1 {
        println!("Petr");
    } else {
        println!("square1001");
    }
}
0