結果

問題 No.5003 物理好きクリッカー
ユーザー nanaenanae
提出日時 2018-12-01 00:04:25
言語 D
(dmd 2.106.1)
結果
AC  
実行時間 336 ms / 10,000 ms
コード長 920 bytes
コンパイル時間 764 ms
実行使用メモリ 21,984 KB
スコア 452,672
平均クエリ数 10000.00
最終ジャッジ日時 2023-06-01 00:00:00
合計ジャッジ時間 13,932 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 317 ms
21,936 KB
testcase_01 AC 317 ms
21,180 KB
testcase_02 AC 318 ms
21,540 KB
testcase_03 AC 317 ms
21,360 KB
testcase_04 AC 320 ms
21,372 KB
testcase_05 AC 330 ms
21,504 KB
testcase_06 AC 318 ms
21,696 KB
testcase_07 AC 325 ms
21,876 KB
testcase_08 AC 318 ms
21,432 KB
testcase_09 AC 320 ms
21,528 KB
testcase_10 AC 319 ms
21,360 KB
testcase_11 AC 318 ms
21,864 KB
testcase_12 AC 318 ms
21,504 KB
testcase_13 AC 336 ms
21,672 KB
testcase_14 AC 314 ms
21,672 KB
testcase_15 AC 316 ms
21,504 KB
testcase_16 AC 318 ms
21,900 KB
testcase_17 AC 318 ms
21,852 KB
testcase_18 AC 320 ms
21,540 KB
testcase_19 AC 317 ms
21,864 KB
testcase_20 AC 319 ms
21,360 KB
testcase_21 AC 319 ms
21,864 KB
testcase_22 AC 320 ms
21,888 KB
testcase_23 AC 319 ms
21,360 KB
testcase_24 AC 317 ms
21,348 KB
testcase_25 AC 317 ms
21,540 KB
testcase_26 AC 319 ms
21,540 KB
testcase_27 AC 316 ms
21,372 KB
testcase_28 AC 316 ms
21,372 KB
testcase_29 AC 317 ms
21,516 KB
testcase_30 AC 315 ms
21,864 KB
testcase_31 AC 318 ms
21,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.string, std.conv;
import std.range, std.algorithm, std.array, std.typecons, std.container;
import std.math, std.numeric, core.bitop;

alias Frac = Tuple!(int, "num", int, "den");

void main() {
    int n;
    string s;
    scan(n);
    scan(s);

    foreach (i ; 0 .. n) {
        writeln("click");
        stdout.flush();
        readln;
    }
}




















void scan(T...)(ref T args) {
    import std.stdio : readln;
    import std.algorithm : splitter;
    import std.conv : to;
    import std.range.primitives;

    auto line = readln().splitter();
    foreach (ref arg; args) {
        arg = line.front.to!(typeof(arg));
        line.popFront();
    }
    assert(line.empty);
}


void fillAll(R, T)(ref R arr, T value) {
    static if (is(typeof(arr[] = value))) {
        arr[] = value;
    }
    else {
        foreach (ref e; arr) {
            fillAll(e, value);
        }
    }
}
0