結果
問題 | No.5003 物理好きクリッカー |
ユーザー |
|
提出日時 | 2018-12-01 00:04:25 |
言語 | D (dmd 2.109.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 |
純コード判定しない問題か言語 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 |
ソースコード
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);}}}