QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#270841#2920. Ultimate Binary WatchPetroTarnavskyi#AC ✓0ms3876kbC++20689b2023-12-01 16:21:072023-12-01 16:21:08

Judging History

你现在查看的是最新测评结果

  • [2023-12-01 16:21:08]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3876kb
  • [2023-12-01 16:21:07]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second

typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PII;
typedef double db;

int main()
{
	ios::sync_with_stdio(0); 
	cin.tie(0);	
	string s;
	cin >> s;
	RFOR(i, 4, 0)
	{
		FOR(j, 0, 4)
		{
			if (j > 0)
				cout << ' ';
			cout << (((s[j] - '0') >> i) & 1 ? '*' : '.');
			if (j == 1)
				cout << "  ";
		}
		cout << "\n";
	}
	return 0;
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3640kb

input:

1234

output:

. .   . .
. .   . *
. *   * .
* .   * .

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

0056

output:

. .   . .
. .   * *
. .   . *
. .   * .

result:

ok 4 lines

Test #3:

score: 0
Accepted
time: 0ms
memory: 3700kb

input:

0708

output:

. .   . *
. *   . .
. *   . .
. *   . .

result:

ok 4 lines

Test #4:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

0909

output:

. *   . *
. .   . .
. .   . .
. *   . *

result:

ok 4 lines

Test #5:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

0000

output:

. .   . .
. .   . .
. .   . .
. .   . .

result:

ok 4 lines

Test #6:

score: 0
Accepted
time: 0ms
memory: 3520kb

input:

0001

output:

. .   . .
. .   . .
. .   . .
. .   . *

result:

ok 4 lines

Test #7:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

0100

output:

. .   . .
. .   . .
. .   . .
. *   . .

result:

ok 4 lines

Test #8:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

2300

output:

. .   . .
. .   . .
* *   . .
. *   . .

result:

ok 4 lines

Test #9:

score: 0
Accepted
time: 0ms
memory: 3876kb

input:

2359

output:

. .   . *
. .   * .
* *   . .
. *   * *

result:

ok 4 lines

Test #10:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

1757

output:

. .   . .
. *   * *
. *   . *
* *   * *

result:

ok 4 lines

Test #11:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

0959

output:

. *   . *
. .   * .
. .   . .
. *   * *

result:

ok 4 lines

Test #12:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

2007

output:

. .   . .
. .   . *
* .   . *
. .   . *

result:

ok 4 lines

Test #13:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

2244

output:

. .   . .
. .   * *
* *   . .
. .   . .

result:

ok 4 lines

Test #14:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

1939

output:

. *   . *
. .   . .
. .   * .
* *   * *

result:

ok 4 lines

Test #15:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

0117

output:

. .   . .
. .   . *
. .   . *
. *   * *

result:

ok 4 lines

Test #16:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

0220

output:

. .   . .
. .   . .
. *   * .
. .   . .

result:

ok 4 lines

Test #17:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

1354

output:

. .   . .
. .   * *
. *   . .
* *   * .

result:

ok 4 lines

Test #18:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

1201

output:

. .   . .
. .   . .
. *   . .
* .   . *

result:

ok 4 lines

Test #19:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

1902

output:

. *   . .
. .   . .
. .   . *
* *   . .

result:

ok 4 lines

Test #20:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

2229

output:

. .   . *
. .   . .
* *   * .
. .   . *

result:

ok 4 lines

Test #21:

score: 0
Accepted
time: 0ms
memory: 3872kb

input:

0749

output:

. .   . *
. *   * .
. *   . .
. *   . *

result:

ok 4 lines

Test #22:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

1957

output:

. *   . .
. .   * *
. .   . *
* *   * *

result:

ok 4 lines

Test #23:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

0019

output:

. .   . *
. .   . .
. .   . .
. .   * *

result:

ok 4 lines

Test #24:

score: 0
Accepted
time: 0ms
memory: 3652kb

input:

1127

output:

. .   . .
. .   . *
. .   * *
* *   . *

result:

ok 4 lines

Test #25:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

1502

output:

. .   . .
. *   . .
. .   . *
* *   . .

result:

ok 4 lines

Test #26:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

1615

output:

. .   . .
. *   . *
. *   . .
* .   * *

result:

ok 4 lines

Test #27:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

1900

output:

. *   . .
. .   . .
. .   . .
* *   . .

result:

ok 4 lines

Test #28:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

0830

output:

. *   . .
. .   . .
. .   * .
. .   * .

result:

ok 4 lines