結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2019-12-24 00:10:07 |
言語 | D (dmd 2.109.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 797 ms |
コンパイル使用メモリ | 106,288 KB |
実行使用メモリ | 8,424 KB |
最終ジャッジ日時 | 2024-06-22 03:59:15 |
合計ジャッジ時間 | 2,009 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 17 |
ソースコード
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; void main() { auto N = readln.strip.to!int; auto ps = readln.split.to!(long[]); long x = 1, t; foreach (p; ps) { if (p == 0) { writeln(0); return; } x = (x * p) % 9; } writeln(x); }