結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
6soukiti29
|
| 提出日時 | 2017-08-08 22:44:21 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 330 bytes |
| コンパイル時間 | 3,080 ms |
| コンパイル使用メモリ | 67,072 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-30 02:00:45 |
| 合計ジャッジ時間 | 3,607 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils,strutils,strscans
var
W,H : int
C : string
a,b : string
L = stdin.readline
discard scanf(L,"$i $i $+\n",W, H, C)
a = repeat("BW",(W + 1) div 2)
b = repeat("WB",(W + 1) div 2)
if C == "W":
(a,b) = (b,a)
for i in 1..H:
if (i and 1) == 1:
echo a[0..<W]
else:
echo b[0..<W]
6soukiti29