Virtual Judeg
本专栏记录Virtual Judge 刷题记录
申请于2019-04-08
Parzivval
。
展开
-
E - Digit Generator
#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(int i=0;i<n;i++){ int temp; bool a=true; cin>>temp; int c=0,tt=temp; while(tt>...原创 2019-04-10 11:12:22 · 198 阅读 · 0 评论 -
D - Master-Mind Hints
#include <bits/stdc++.h>using namespace std;int main(){ int it=1; while(true){ int n; cin>>n; if(n==0)break; vector<int>secret(n); for(int i=0;i<n;i++)...原创 2019-04-10 09:40:02 · 212 阅读 · 0 评论 -
C - Palindromes
#include <bits/stdc++.h>using namespace std;string str = "A 3 HIL JM O 2TUVWXY51SE Z 8 "; char trainslate(char c){ if(isalpha(c))return str[c-'A']; else return str[c-'0'+25];...原创 2019-04-09 22:50:36 · 242 阅读 · 0 评论 -
B - WERTYU
#include<iostream>#include<stdio.h>#include<string>using namespace std;int main(){ string s="`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"; char c; while(scanf("%c...原创 2019-04-08 23:33:44 · 200 阅读 · 0 评论 -
A - TEX Quotes
#include<iostream>#include<stdio.h>#include<string>using namespace std;int main(){ string s,ss; bool dou=false,single=false; char c; while(scanf("%c",&c)!=EOF){ ...原创 2019-04-08 15:55:15 · 172 阅读 · 0 评论