結果

問題 No.8029 素因数
ユーザー norioc
提出日時 2018-02-24 13:09:55
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 250 ms
コード長 495 bytes
コンパイル時間 1,139 ms
コンパイル使用メモリ 113,620 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 23:56:52
合計ジャッジ時間 2,412 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm;
import std.array;
import std.bigint;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    auto x = BigInt("177635683940025046467781066894531");

    int m = readint;
    if ((x % m) % 2 == 0)
        writeln("even");
    else
        writeln("odd");
}
0