結果
| 問題 | No.434 占い |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2016-10-14 23:28:20 |
| 言語 | Perl (5.42.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 997 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 34,560 KB |
| 最終ジャッジ日時 | 2024-11-22 06:22:29 |
| 合計ジャッジ時間 | 61,358 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 TLE * 17 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use bigint;
$n=<>;
for(1..$n){
$_=<>;
chomp;
$l=length;
$s=0;
$t=0;
$i=1;
$m=1;
for(/./g){
$t|=$_;
$s=($s+$_*$m)%9;
$m=$m*($l-$i)/$i;
++$i;
}
$s=9 if $s==0&&$t;
print$s,$/;
}
tails