結果
問題 | No.339 何人が回答したのか |
ユーザー |
![]() |
提出日時 | 2021-12-19 20:32:17 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 1,836 ms |
コンパイル使用メモリ | 203,480 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 13:48:32 |
合計ジャッジ時間 | 3,575 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 61 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/std/numeric.d(2999): Warning: cannot inline function `std.numeric.gcdImpl!uint.gcdImpl`
ソースコード
import std;void main() {int N;readf("%d\n", N);int g;foreach (i; 0 .. N) {int A;readf("%d\n", A);if (i > 0) {g = gcd(g, A);}else {g = A;}}int res = 100 / g;res.writeln;}