結果
問題 | No.607 開通777年記念 |
ユーザー |
![]() |
提出日時 | 2017-12-07 01:28:50 |
言語 | D (dmd 2.109.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 531 bytes |
コンパイル時間 | 597 ms |
コンパイル使用メモリ | 100,344 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-12 22:51:30 |
合計ジャッジ時間 | 1,479 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 10 |
ソースコード
void main(){ import std.stdio, std.string, std.conv, std.algorithm; int n, m; rd(n, m); auto a=new int[](n); while(m--){ auto d=readln.split.to!(int[]); foreach(i; 0..n){ a[i]+=d[i]; assert(a[i]>=0); } } writeln("0"); } void rd(T...)(ref T x){ import std.stdio, std.string, std.conv; auto l=readln.split; assert(l.length==x.length); foreach(i, ref e; x){ e=l[i].to!(typeof(e)); } } void wr(T...)(T x){ import std.stdio; foreach(e; x) stderr.write(e, " "); stderr.writeln; }