Submission #3227702
Source Code Expand
n = gets.to_i sn = 0 for i in 0...n.to_s.length do sn += n[i] end if n % sn == 0 puts "Yes" else puts "No" end
Submission Info
Submission Time | |
---|---|
Task | B - Digit Sums |
User | ne290131 |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 137 Byte |
Status | RE |
Exec Time | 7 ms |
Memory | 3836 KB |
Judge Result
Set Name | Sample | All | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 7 ms | 1788 KB |
2.txt | WA | 7 ms | 1788 KB |
3.txt | WA | 7 ms | 3836 KB |
4.txt | WA | 7 ms | 1788 KB |
5.txt | AC | 6 ms | 1788 KB |
6.txt | WA | 7 ms | 1788 KB |
7.txt | AC | 7 ms | 1788 KB |
8.txt | AC | 6 ms | 1788 KB |
sample1.txt | RE | 7 ms | 1788 KB |
sample2.txt | AC | 6 ms | 1788 KB |
sample3.txt | AC | 6 ms | 1788 KB |